Skip to content

Commit

Permalink
[schema] Fix error when guessing preview config for files
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Sep 1, 2017
1 parent 998a05d commit 7fd1e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/schema/src/types/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const FileType = {
})
})

lazyGetter(parsed, 'preview', createPreviewGetter(subTypeDef))
lazyGetter(parsed, 'preview', createPreviewGetter(Object.assign({}, subTypeDef, {fields})))

return subtype(parsed)

Expand Down

0 comments on commit 7fd1e1f

Please sign in to comment.