File tree 1 file changed +2
-9
lines changed
packages/sanity/src/core/releases/tool/detail
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,7 @@ import {mergeMapArray} from 'rxjs-mergemap-array'
27
27
28
28
import { useSchema } from '../../../hooks'
29
29
import { type LocaleSource } from '../../../i18n/types'
30
- import {
31
- type DocumentPreviewStore ,
32
- getPreviewValueWithFallback ,
33
- prepareForPreview ,
34
- } from '../../../preview'
30
+ import { type DocumentPreviewStore , prepareForPreview } from '../../../preview'
35
31
import { useDocumentPreviewStore } from '../../../store/_legacy/datastores'
36
32
import { useSource } from '../../../studio'
37
33
import { getPublishedId } from '../../../util/draftUtils'
@@ -228,10 +224,7 @@ const getPublishedArchivedReleaseDocumentsObservable = ({
228
224
take ( 1 ) ,
229
225
map ( ( { snapshot} ) => ( {
230
226
isLoading : false ,
231
- values : prepareForPreview (
232
- getPreviewValueWithFallback ( { snapshot, fallback : document } ) ,
233
- schemaType ,
234
- ) ,
227
+ values : prepareForPreview ( snapshot || document , schemaType ) ,
235
228
} ) ) ,
236
229
startWith ( { isLoading : true , values : { } } ) ,
237
230
filter ( ( { isLoading} ) => ! isLoading ) ,
You can’t perform that action at this time.
0 commit comments