Skip to content

Commit 4a78684

Browse files
committed
Fix another issue with column type
1 parent d3bae40 commit 4a78684

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

js/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ function renderQuery(query) {
396396
let isEmptyTable = true;
397397
const columnNames = sel.getColumnNames();
398398
for (let i = 0; i < columnNames.length; i++) {
399-
const type = columnTypes.get(columnNames[i]);
399+
const columnName = columnNames[i];
400+
const type = columnTypes.has(columnName) ? columnTypes.get(columnNames[i]) : "";
400401
thead.append(`<th><span data-bs-toggle="tooltip" title="${type}">${columnNames[i]}</span></th>`);
401402
}
402403

0 commit comments

Comments
 (0)