소스 검색

[editor] Fix exception when fetching comment in the autocomplete details panel

Johan Ahlen 5 년 전
부모
커밋
f8341d8293
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      desktop/core/src/desktop/js/apps/notebook2/components/aceEditor/autocomplete/CatalogEntryDetailsPanel.vue

+ 2 - 2
desktop/core/src/desktop/js/apps/notebook2/components/aceEditor/autocomplete/CatalogEntryDetailsPanel.vue

@@ -99,10 +99,10 @@
         this.loadTimeout = window.setTimeout(() => {
           this.commentPromise = this.details
             .getComment({ silenceErrors: true, cancellable: true })
-            .done(comment => {
+            .then(comment => {
               this.comment = comment;
             })
-            .always(() => {
+            .finally(() => {
               this.loading = false;
             });
         }, COMMENT_LOAD_DELAY);