Skip to content

Commit

Permalink
fix ImageText editor
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Jan 9, 2025
1 parent 6c96546 commit 67e6611
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/manage/Blocks/ImageText/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ const Edit = (props) => {
const { data = {}, selected = false } = props;
const schema = getSchema();
const value = { children: data.value || [], isVoid: Editor.isVoid };
const valueUndefined =
!value.children.length || Editor.string(value, []) === '';
const valueUndefined = !value.children.length;

const handleKeyDown = (e, index, { disableEnter = false } = {}) => {
if (e.key === 'Enter' && !e.shiftKey && !disableEnter) {
Expand Down

0 comments on commit 67e6611

Please sign in to comment.