Browse Source

[importer_direct_upload] adding auto default dialect

ayush.goyal 4 years ago
parent
commit
239304cd45
1 changed files with 2 additions and 2 deletions
  1. 2 2
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 2 - 2
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1794,9 +1794,9 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
       });
       });
 
 
       self.interpreters = ko.pureComputed(function() {
       self.interpreters = ko.pureComputed(function() {
-        return window.getLastKnownConfig().app_config.editor.interpreters;
+        return window.getLastKnownConfig().app_config.catalogs;
       });
       });
-      self.interpreter = ko.observable(window.getLastKnownConfig().app_config.editor.default_sql_interpreter);
+      self.interpreter = ko.observable(vm.sourceType);
       self.interpreter.subscribe(function(val) {
       self.interpreter.subscribe(function(val) {
         self.sourceType(val);
         self.sourceType(val);
         wizard.destination.sourceType(val);
         wizard.destination.sourceType(val);