소스 검색

HUE-8886 [importer] Changing the "Has Header" checkbox should refresh the importer preview

Johan Ahlen 6 년 전
부모
커밋
9c4a89e4bc
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

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

@@ -1564,7 +1564,9 @@ ${ assist.assistPanel() }
           }
 
           setTimeout(function () {
-            var types = type.args.filter(function(x){ return x && x.type !== 'checkbox'});
+            var types = type.args.filter(function (x){
+              return x && (x.type !== 'checkbox' || x.name === 'hasHeader');
+            });
             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