浏览代码

[notebook] Only initialize databases for sql type snippets

Johan Ahlen 10 年之前
父节点
当前提交
bea01b0
共有 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();
   }