Преглед изворни кода

HUE-7934 [importer] Unselecting has Header checkbox has no effect

Romain Rigaux пре 7 година
родитељ
комит
b1b0938
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      desktop/libs/indexer/src/indexer/templates/importer.mako

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

@@ -1195,9 +1195,8 @@ ${ assist.assistPanel() }
 
         for (var i = 0; i < type.args.length; i++) {
           self[type.args[i].name].subscribe(function(newVal) {
-            if (newVal) { // Double call on non File selection otherwise
-              viewModel.createWizard.guessFieldTypes();
-            }
+            // Update the data preview when tweaking Format options on step 1
+            viewModel.createWizard.guessFieldTypes();
           });
         }
       }