From 4a7868455d28fe8c251af364006c3881a9d23d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nov=C3=A1k?= Date: Tue, 5 Mar 2024 15:43:02 +0100 Subject: [PATCH] Fix another issue with column type --- js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]}`); }