소스 검색

Merge pull request #3019 from overleaf/pr-fix-outline-jump-to-location

Fix outline "jump to location" feature.

GitOrigin-RevId: a760a885b997424bf677313636ac16588776b76a
Paulo Jorge Reis 6 년 전
부모
커밋
e0dd4d0cf5
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/web/frontend/js/ide/outline/OutlineManager.js

+ 1 - 1
services/web/frontend/js/ide/outline/OutlineManager.js

@@ -15,7 +15,7 @@ class OutlineManager {
     this.outline = []
     this.outline = []
 
 
     scope.$on('doc:after-opened', () => {
     scope.$on('doc:after-opened', () => {
-      this.shareJsDoc = scope.editor.shareJsDoc
+      this.shareJsDoc = scope.editor.sharejs_doc
       this.isTexFile = isValidTeXFile(scope.editor.open_doc_name)
       this.isTexFile = isValidTeXFile(scope.editor.open_doc_name)
       this.updateOutline()
       this.updateOutline()
       this.broadcastChangeEvent()
       this.broadcastChangeEvent()