From 3dd927e15e1265a920ce908436f1b253e2a241f6 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 22 Feb 2021 12:05:59 +0000 Subject: [PATCH] Fixing test case. --- .../builder/src/components/integration/QueryViewer.svelte | 2 ++ packages/server/src/api/controllers/table/utils.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index 646f12f529..e9ba8fb9e2 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -203,11 +203,13 @@ + Please run your query to fetch some data. + {:else} {JSON.stringify(data[0], undefined, 2)} {/if} diff --git a/packages/server/src/api/controllers/table/utils.js b/packages/server/src/api/controllers/table/utils.js index c57766e441..73e6e60551 100644 --- a/packages/server/src/api/controllers/table/utils.js +++ b/packages/server/src/api/controllers/table/utils.js @@ -7,7 +7,7 @@ const { inputProcessing } = require("../../../utilities/rowProcessor") const { USERS_TABLE_SCHEMA } = require("../../../constants") exports.checkForColumnUpdates = async (db, oldTable, updatedTable) => { - let updatedRows + let updatedRows = [] const rename = updatedTable._rename let deletedColumns = [] if (oldTable && oldTable.schema && updatedTable.schema) { @@ -172,7 +172,7 @@ class TableSaveFunctions { this.oldTable, table ) - this.rows.concat(response.rows) + this.rows = this.rows.concat(response.rows) return table }