Skip to content

Commit 1ba6caa

Browse files
authored
Revert "[lexical-playground][lexical-poll] Bug Fix: Fixes undefined context inside Poll add option" (#6362)
1 parent 3bd1351 commit 1ba6caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/lexical-playground/src/nodes/PollNode.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class PollNode extends DecoratorNode<JSX.Element> {
9191
serializedNode.question,
9292
serializedNode.options,
9393
);
94-
serializedNode.options.forEach((option) => node.addOption(option));
94+
serializedNode.options.forEach(node.addOption);
9595
return node;
9696
}
9797

0 commit comments

Comments
 (0)