diff --git a/packages/lexical-react/src/LexicalCollaborationPlugin.tsx b/packages/lexical-react/src/LexicalCollaborationPlugin.tsx index c4bd44e4d054..58a407a7a1d6 100644 --- a/packages/lexical-react/src/LexicalCollaborationPlugin.tsx +++ b/packages/lexical-react/src/LexicalCollaborationPlugin.tsx @@ -96,7 +96,7 @@ export function CollaborationPlugin({ editor, provider, id, - doc ?? yjsDocMap.get(id), + doc || yjsDocMap.get(id), yjsDocMap, excludedProperties, );