mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2736 from overleaf/cmg-ns-set-root-doc
Ensure setRootDoc settings persist GitOrigin-RevId: 76b7633719b4193dbd70ada98f2889730803b583
This commit is contained in:
parent
ffe46658f6
commit
dba294377c
1 changed files with 4 additions and 1 deletions
|
@ -198,7 +198,10 @@ define(['../../../base'], App =>
|
|||
}
|
||||
// don't save on initialisation, Angular passes oldRootDoc_id as
|
||||
// undefined in this case.
|
||||
if (typeof oldRootDoc_id === 'undefined') {
|
||||
if (
|
||||
typeof rootDoc_id === 'undefined' &&
|
||||
typeof oldRootDoc_id === 'undefined'
|
||||
) {
|
||||
return
|
||||
}
|
||||
// otherwise only save changes, null values are allowed
|
||||
|
|
Loading…
Reference in a new issue