Browse Source

[frontend] Fix unhandled promise exceptions in assist

Johan Åhlén 4 years ago
parent
commit
d6c28c4b2b

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/assistDbSource.js

@@ -249,7 +249,7 @@ class AssistDbSource {
         whenLoaded();
         whenLoaded();
       });
       });
     } else {
     } else {
-      self.loadNamespaces().done(whenLoaded);
+      self.loadNamespaces().then(whenLoaded);
     }
     }
   }
   }
 
 

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistDbPanel.js

@@ -807,7 +807,7 @@ class AssistDbPanel {
     this.sources([source]);
     this.sources([source]);
     this.selectedSource(source);
     this.selectedSource(source);
 
 
-    source.loadNamespaces().done(() => {
+    source.loadNamespaces().then(() => {
       const namespace = this.selectedSource().selectedNamespace();
       const namespace = this.selectedSource().selectedNamespace();
       if (namespace) {
       if (namespace) {
         namespace.initDatabases();
         namespace.initDatabases();