mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #3789 from overleaf/bg-fix-root-doc-override
suppress root doc override when in the root doc GitOrigin-RevId: 3671dece0857b114d0b40cdc2161be0546377985
This commit is contained in:
parent
be95516185
commit
0ca6b5921f
1 changed files with 5 additions and 0 deletions
|
@ -719,6 +719,11 @@ App.controller('PdfController', function(
|
|||
}
|
||||
|
||||
function getRootDocOverrideId() {
|
||||
const rootDocId = $scope.project.rootDoc_id
|
||||
const currentDocId = ide.editorManager.getCurrentDocId()
|
||||
if (currentDocId === rootDocId) {
|
||||
return null // no need to override when in the root doc itself
|
||||
}
|
||||
const doc = ide.editorManager.getCurrentDocValue()
|
||||
if (doc == null) {
|
||||
return null
|
||||
|
|
Loading…
Reference in a new issue