diff --git a/js/main.js b/js/main.js index 2e4e6df..01e4794 100644 --- a/js/main.js +++ b/js/main.js @@ -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(`${columnNames[i]}`); }