浏览代码

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();
           });
         }
       }