Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksson-daniel committed Jan 28, 2025
1 parent b572d7b commit e1ad5e2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/src/plate/components/page-break.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ const parentIsUnchangeable = (editor: PlateEditor, entry: NodeEntry<PageBreakEle

const [parentNode, parentNodePath] = parentEntry;

// Used to be isEditor(parentNode), but isEditor is unavailable for parentNode
if (parentNodePath.length === 0) {
return false;
}

// if (isEditor(parentNode)) {
// return false;
// }

if (!ElementApi.isElement(parentNode)) {
return true;
}
Expand Down

0 comments on commit e1ad5e2

Please sign in to comment.