Skip to content

Commit

Permalink
fix(portable-text-editor): don't use Object as const name
Browse files Browse the repository at this point in the history
This will confuse the transpilers
  • Loading branch information
skogsmaskin committed Aug 11, 2022
1 parent 6feb4f2 commit a6b26ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@sanity/portable-text-editor/src/editor/Element.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {fromSlateValue} from '../utils/values'
import {debugWithName} from '../utils/debug'
import {KEY_TO_VALUE_ELEMENT} from '../utils/weakMaps'
import TextBlock from './nodes/TextBlock'
import Object from './nodes/DefaultObject'
import ObjectNode from './nodes/DefaultObject'
import {DefaultBlockObject} from './nodes/index'
import {DraggableBlock} from './DraggableBlock'
import {DraggableChild} from './DraggableChild'
Expand Down Expand Up @@ -39,7 +39,7 @@ type ElementProps = {
const inlineBlockStyle = {display: 'inline-block'}

const defaultRender = (value: PortableTextBlock) => {
return <Object value={value} />
return <ObjectNode value={value} />
}

// eslint-disable-next-line max-statements
Expand Down

0 comments on commit a6b26ca

Please sign in to comment.