Skip to content

Commit

Permalink
fix intial value slate
Browse files Browse the repository at this point in the history
  • Loading branch information
dobri1408 committed Apr 3, 2024
1 parent 448dbb4 commit c70bb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Blocks/Hero/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function Edit(props) {
blocks: {
[id]: {
'@type': 'slate',
value: { ...data.text },
value: data.text,
plaintext: data.text?.[0].children?.[0].text,
},
},
Expand Down

0 comments on commit c70bb80

Please sign in to comment.