diff --git a/packages/sanity/src/core/form/studio/inputs/client-adapters/reference.ts b/packages/sanity/src/core/form/studio/inputs/client-adapters/reference.ts index 76c3e8584be..69ca2e53b4f 100644 --- a/packages/sanity/src/core/form/studio/inputs/client-adapters/reference.ts +++ b/packages/sanity/src/core/form/studio/inputs/client-adapters/reference.ts @@ -230,12 +230,12 @@ export function getReferenceInfo( id: publishedId, availability, preview: { - draft: (isRecord(value.draft.snapshot) ? value.draft : undefined) as - | PreviewDocumentValue - | undefined, - published: (isRecord(value.published.snapshot) ? value.published : undefined) as + draft: (isRecord(value.draft.snapshot) ? value.draft.snapshot : undefined) as | PreviewDocumentValue | undefined, + published: (isRecord(value.published.snapshot) + ? value.published.snapshot + : undefined) as PreviewDocumentValue | undefined, version: (isRecord(value.version?.snapshot) ? value.version.snapshot : undefined) as PreviewDocumentValue | undefined,