Skip to content

Commit

Permalink
Update packages/lexical/src/LexicalEditorState.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bob Ippolito <bob@redivi.com>
  • Loading branch information
GermanJablo and etrepum authored Dec 11, 2024
1 parent b96a12e commit a2fb1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lexical/src/LexicalEditorState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function exportNodeToJSON<SerializedNode extends SerializedLexicalNode>(
node: LexicalNode,
): SerializedNode {
const serializedNode = node.exportJSON();
if (node.__classes && Object.keys(node.__classes).length > 0) {
if (Object.keys(node.__classes).length > 0) {
serializedNode.classes = node.__classes;
}
const nodeClass = node.constructor;
Expand Down

0 comments on commit a2fb1df

Please sign in to comment.