diff --git a/services/web/frontend/js/features/ide-react/context/editor-manager-context.tsx b/services/web/frontend/js/features/ide-react/context/editor-manager-context.tsx index 34a35f415e..5546105621 100644 --- a/services/web/frontend/js/features/ide-react/context/editor-manager-context.tsx +++ b/services/web/frontend/js/features/ide-react/context/editor-manager-context.tsx @@ -361,6 +361,7 @@ export const EditorManagerProvider: FC = ({ children }) => { ) newDocument.leaveAndCleanUp() reject(new Error('another document was loaded')) + return } bindToDocumentEvents(doc, newDocument) resolve(newDocument)