Skip to content

Commit

Permalink
fix afterCloneFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanJablo committed Dec 10, 2024
1 parent 00c711e commit 3da33aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/lexical/src/LexicalNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ export class LexicalNode {
this.__parent = prevNode.__parent;
this.__next = prevNode.__next;
this.__prev = prevNode.__prev;
this.__classes = {...prevNode.__classes};
if (prevNode.__classes) {
this.__classes = {...prevNode.__classes};
}
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 3da33aa

Please sign in to comment.