Skip to content

Commit

Permalink
[design-studio] Update JSON preview
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent 5d7e77f commit f30c8f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/design-studio/documentViews/jsonPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import {useEditState} from '@sanity/react-hooks'
import React from 'react'

export function JSONPreviewDocumentView(props: any) {
const editState: any = useEditState(props.documentId, props.schemaType.name)

return <pre>{JSON.stringify(editState.draft || editState.published, null, 2)}</pre>
return <pre>{JSON.stringify(props.document, null, 2)}</pre>
}

0 comments on commit f30c8f7

Please sign in to comment.