diff --git a/services/web/frontend/js/ide/editor/EditorManager.js b/services/web/frontend/js/ide/editor/EditorManager.js
index 2d3935c216..508846a175 100644
--- a/services/web/frontend/js/ide/editor/EditorManager.js
+++ b/services/web/frontend/js/ide/editor/EditorManager.js
@@ -242,7 +242,10 @@ define([
"Sorry, this file has gone out of sync and we need to do a full refresh.
Please see this help guide for more information"
)
}
- return this.openDoc(doc, { forceReopen: true })
+ const removeHandler = this.$scope.$on('project:joined', () => {
+ this.openDoc(doc, { forceReopen: true })
+ removeHandler()
+ })
})
return sharejs_doc.on('externalUpdate', update => {