Эх сурвалжийг харах

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

Johan Ahlen 5 жил өмнө
parent
commit
f8341d8293

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

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