Skip to content

Commit

Permalink
Fixing email-placeholder when childrenIds is empty array (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
cohitre authored Mar 4, 2024
1 parent ab29e5e commit 3ed9f61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function EditorChildrenIds({ childrenIds, onChange }: EditorChild
});
};

if (!childrenIds) {
if (!childrenIds || childrenIds.length === 0) {
return <AddBlockButton placeholder onSelect={appendBlock} />;
}

Expand Down

0 comments on commit 3ed9f61

Please sign in to comment.