Эх сурвалжийг харах

Merge pull request #3541 from overleaf/ta-root-doc-setting-fix

Set Null Default Value for rootDoc_id

GitOrigin-RevId: 7aa14f20f137f77f7d620a39b5d8f34b13a93e65
Timothée Alby 5 жил өмнө
parent
commit
87d08c8fa8

+ 2 - 1
services/web/frontend/js/ide/connection/ConnectionManager.js

@@ -438,7 +438,8 @@ Something went wrong connecting to your project. Please refresh if this continue
           this.$scope.$apply(() => {
             this.updateConnectionManagerState('ready')
             this.$scope.protocolVersion = protocolVersion
-            this.$scope.project = project
+            const defaultProjectAttributes = { rootDoc_id: null }
+            this.$scope.project = { ...defaultProjectAttributes, ...project }
             this.$scope.permissionsLevel = permissionsLevel
             this.ide.loadingManager.socketLoaded()
             this.$scope.$broadcast('project:joined')