Skip to content

Commit

Permalink
Fix another issue with column type
Browse files Browse the repository at this point in the history
  • Loading branch information
yuraj11 committed Mar 5, 2024
1 parent d3bae40 commit 4a78684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ function renderQuery(query) {
let isEmptyTable = true;
const columnNames = sel.getColumnNames();
for (let i = 0; i < columnNames.length; i++) {
const type = columnTypes.get(columnNames[i]);
const columnName = columnNames[i];
const type = columnTypes.has(columnName) ? columnTypes.get(columnNames[i]) : "";
thead.append(`<th><span data-bs-toggle="tooltip" title="${type}">${columnNames[i]}</span></th>`);
}

Expand Down

0 comments on commit 4a78684

Please sign in to comment.