Skip to content

Commit 9c6b207

Browse files
authoredFeb 28, 2025
fix(preview): prefer snapshot over original when previewing (#8792)
1 parent 3495c4a commit 9c6b207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/sanity/src/core/preview/utils/getPreviewValueWithFallback.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function getPreviewValueWithFallback({
3232
if (document && !original && !snapshot) {
3333
return getMissingDocumentFallback(document)
3434
}
35-
return assignWith({}, original, snapshot, (objValue, srcValue) => {
35+
return assignWith({}, snapshot, original, (objValue, srcValue) => {
3636
return typeof srcValue === 'undefined' ? objValue : srcValue
3737
}) as PreviewValue
3838
}

0 commit comments

Comments
 (0)