Skip to content

Commit

Permalink
[field] PT: fix missing key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin authored and rexxars committed Oct 6, 2020
1 parent de9faec commit c26fa0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type Props = {
schemaType: ObjectSchemaType
}

export default function Block(props: Props): JSX.Element {
export default function Experimental(props: Props): JSX.Element {
const {diff, childMap, experimentalDiff, schemaType} = props

const handleObjectFocus = (event: SyntheticEvent<HTMLSpanElement>) => {
Expand Down Expand Up @@ -276,7 +276,7 @@ export default function Block(props: Props): JSX.Element {
)
}
})
return React.createElement('div', {}, ...returnedChildren)
return React.createElement('div', {key: block._key}, ...returnedChildren)
}
throw new Error('span schemaType not found')
}
Expand Down

0 comments on commit c26fa0d

Please sign in to comment.