浏览代码

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

Johan Ahlen 5 年之前
父节点
当前提交
f8341d8293

+ 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);