From ee4c3cba0a1dd27c6cd6f694009489320b03a637 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 7 Feb 2022 15:43:28 +0530 Subject: [PATCH] fix: sync both table and view in a single meta sync Signed-off-by: Pranav C --- packages/nocodb/src/lib/noco/common/handlers/xcMetaDiffSync.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/noco/common/handlers/xcMetaDiffSync.ts b/packages/nocodb/src/lib/noco/common/handlers/xcMetaDiffSync.ts index bcc5166061..3323793d10 100644 --- a/packages/nocodb/src/lib/noco/common/handlers/xcMetaDiffSync.ts +++ b/packages/nocodb/src/lib/noco/common/handlers/xcMetaDiffSync.ts @@ -789,7 +789,8 @@ if (sIndex > -1) { // invoke only if there is change in at least one table if (populateParams.tableNames?.length) { await this.xcTablesPopulate(populateParams); - } else if (populateViewsParams.tableNames?.length) { + } + if (populateViewsParams.tableNames?.length) { await this.xcTablesPopulate(populateViewsParams); }