Jelajahi Sumber

HUE-8720 [importer] Fix importer with custom separator

jdesjean 6 tahun lalu
induk
melakukan
a3f50f7edd
1 mengubah file dengan 10 tambahan dan 0 penghapusan
  1. 10 0
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 10 - 0
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1569,6 +1569,16 @@ ${ assist.assistPanel() }
           if (args) {
             loadFromObj(args);
           }
+
+          setTimeout(function () {
+            var types = type.args.filter(function(x){ return x && x.type !== 'checkbox'});
+            for (var i = 0; i < types.length; i++) {
+              self[types[i].name].subscribe(function() {
+                // Update the data preview when tweaking Format options on step 1
+                viewModel.createWizard.guessFieldTypes();
+              });
+            }
+          }); // Prevent notification on start
         }
       };