Просмотр исходного кода

Merge pull request #7301 from overleaf/ta-ii-outline-filename-fix

Fix File Outilne after Switching to Binary Files

GitOrigin-RevId: 3b349399cb90dd911381c27522a5ca067312f621
Timothée Alby 4 лет назад
Родитель
Сommit
d968810a27
1 измененных файлов с 0 добавлено и 6 удалено
  1. 0 6
      services/web/frontend/js/features/outline/outline-manager.js

+ 0 - 6
services/web/frontend/js/features/outline/outline-manager.js

@@ -31,12 +31,6 @@ class OutlineManager {
       this.broadcastChangeEvent()
     })
 
-    scope.$watch('openFile.name', openFileName => {
-      this.isTexFile = isValidTeXFile(openFileName)
-      this.updateOutline()
-      this.broadcastChangeEvent()
-    })
-
     scope.$on('doc:changed', () => {
       this.updateOutline()
       this.broadcastChangeEvent()