From 1cf10e8fd91bf3c01c0be32f0c775a9259dc5cf1 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sat, 24 Sep 2022 17:58:15 +0300 Subject: [PATCH] fix: multiple source sync views Signed-off-by: mertmit --- packages/nocodb/src/lib/meta/api/baseApis.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/nocodb/src/lib/meta/api/baseApis.ts b/packages/nocodb/src/lib/meta/api/baseApis.ts index 7b015135b7..b21985a000 100644 --- a/packages/nocodb/src/lib/meta/api/baseApis.ts +++ b/packages/nocodb/src/lib/meta/api/baseApis.ts @@ -126,14 +126,14 @@ async function populateMeta(base: Base, project: Project): Promise { return t; }); - // TODO add base prefix - /* filter based on prefix - if (project?.prefix) { + + /* filter based on prefix */ + if (base.is_meta && project?.prefix) { tables = tables.filter((t) => { return t?.tn?.startsWith(project?.prefix); }); } - */ + info.tablesCount = tables.length; @@ -297,7 +297,7 @@ async function populateMeta(base: Base, project: Project): Promise { }); /* filter based on prefix */ - if (project?.prefix) { + if (base.is_meta && project?.prefix) { views = tables.filter((t) => { return t?.tn?.startsWith(project?.prefix); });