diff --git a/studio/schemas/objects/linkSelector.tsx b/studio/schemas/objects/linkSelector.tsx index 7239b284c..05e4f4029 100644 --- a/studio/schemas/objects/linkSelector.tsx +++ b/studio/schemas/objects/linkSelector.tsx @@ -73,7 +73,7 @@ const LinkField = { Rule.custom(async (value: any, context: ValidationContext) => { const { parent, document } = context as { parent: LinkSelector; document: { _lang?: string } } if (parent.linkToOtherLanguage) return true - if (Flags.IS_DEV && value._ref) { + if (Flags.IS_DEV && value?._ref) { const referenceLang = await client.fetch( /* groq */ `*[_id == $id][0]{"lang": coalesce(content->_lang, _lang)}.lang`, {