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

Set Null Default Value for rootDoc_id

GitOrigin-RevId: 7aa14f20f137f77f7d620a39b5d8f34b13a93e65
This commit is contained in:
Timothée Alby 2021-01-07 15:22:06 +01:00 committed by Copybot
parent 26143d13d3
commit 87d08c8fa8

View file

@ -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')