Restore return on join doc error (#23377)

GitOrigin-RevId: df03621221ecacffe50cb805fd3a2fd71ce773a7
This commit is contained in:
Alf Eaton
2025-02-06 10:14:42 +00:00
committed by Copybot
parent 7632bed1fe
commit 185c53bd70

View File

@@ -361,6 +361,7 @@ export const EditorManagerProvider: FC = ({ children }) => {
)
newDocument.leaveAndCleanUp()
reject(new Error('another document was loaded'))
return
}
bindToDocumentEvents(doc, newDocument)
resolve(newDocument)