Skip to content

Commit

Permalink
fix(core): reference to drafts not showing values
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Jan 23, 2025
1 parent 9a58441 commit 89e2c7f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 89e2c7f

Please sign in to comment.