瀏覽代碼

HUE-4530 [indexer] Fix file type load

Enrico Berti 9 年之前
父節點
當前提交
b1334a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/indexer/src/indexer/templates/indexer.mako

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

@@ -740,7 +740,7 @@ ${ assist.assistPanel() }
           "fileFormat": ko.mapping.toJSON(self.fileFormat)
         }, function (resp) {
           resp.columns.forEach(function (entry, i, arr) {
-            arr[i] = ko.mapping.fromJS(entry);
+            arr[i] = loadField(entry);
           });
           self.fileFormat().columns(resp.columns);
           self.isGuessingFieldTypes(false);