Skip to content

Commit

Permalink
ff
Browse files Browse the repository at this point in the history
  • Loading branch information
2wheeh committed Apr 23, 2024
1 parent 07ef7d7 commit 418952b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/lexical-react/src/LexicalCheckListPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,9 @@ function findEditor(target: Node) {

while (node) {
// @ts-ignore internal field
if (node.__lexicalEditor) {
// @ts-ignore internal field
const editor: LexicalEditor | undefined | null = node.__lexicalEditor;
if (editor === undefined || editor === null) {
return null;
}
const editor: LexicalEditor | undefined | null = node.__lexicalEditor;

if (editor !== undefined && editor !== null) {
return editor;
}

Expand Down

0 comments on commit 418952b

Please sign in to comment.