Преглед на файлове

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