Merge pull request #3725 from overleaf/ab-ta-pdf-sync-spinner

Stop spinner on PDF sync when file does not exist anymore

GitOrigin-RevId: cba4bf3dd3d90c2894c6c5f1b28d184f18bb08fd
This commit is contained in:
Alexandre Bourdin 2021-03-10 10:09:35 +01:00 committed by Copybot
parent da6222fc58
commit 6e35561aeb
2 changed files with 4 additions and 1 deletions

View file

@ -68,3 +68,6 @@ modules/**/Makefile
# via dev-environment
.npmrc
# Intellij
.idea

View file

@ -1063,7 +1063,7 @@ App.factory('synctex', function(ide, $http, $q) {
) {
const doc = ide.fileTreeManager.findEntityByPath(data.code[0].file)
if (doc == null) {
return
deferred.reject()
}
return deferred.resolve({ doc, line: data.code[0].line })
} else if (data.code[0].file === '') {