Skip to content

Commit 95d3c91

Browse files
committed
[base] Pass viewOptions to preview.prepare in production as well
1 parent 3964be1 commit 95d3c91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@sanity/base/src/preview/prepareForPreview.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ function invokePrepareChecked(type, value, viewOptions) {
5151
return value
5252
}
5353

54-
function invokePrepareUnchecked(type, value) {
55-
return (type.preview.prepare || pass)(value)
54+
function invokePrepareUnchecked(type, value, viewOptions) {
55+
return (type.preview.prepare || pass)(value, viewOptions)
5656
}
5757

5858
export const invokePrepare = __DEV__ ? invokePrepareChecked : invokePrepareUnchecked

0 commit comments

Comments
 (0)