فهرست منبع

[notebook] Only initialize databases for sql type snippets

Johan Ahlen 10 سال پیش
والد
کامیت
bea01b0c80
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      desktop/core/src/desktop/static/desktop/js/sqlAutocompleter.js

+ 3 - 1
desktop/core/src/desktop/static/desktop/js/sqlAutocompleter.js

@@ -40,7 +40,9 @@
       }
     };
     self.snippet.type.subscribe(function() {
-      initDatabases();
+      if (self.snippet.isSqlDialect()) {
+        initDatabases();
+      }
     });
     initDatabases();
   }