Browse Source

fix: multiple source sync views

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3573/head
mertmit 2 years ago
parent
commit
1cf10e8fd9
  1. 10
      packages/nocodb/src/lib/meta/api/baseApis.ts

10
packages/nocodb/src/lib/meta/api/baseApis.ts

@ -126,14 +126,14 @@ async function populateMeta(base: Base, project: Project): Promise<any> {
return t; return t;
}); });
// TODO add base prefix
/* filter based on prefix /* filter based on prefix */
if (project?.prefix) { if (base.is_meta && project?.prefix) {
tables = tables.filter((t) => { tables = tables.filter((t) => {
return t?.tn?.startsWith(project?.prefix); return t?.tn?.startsWith(project?.prefix);
}); });
} }
*/
info.tablesCount = tables.length; info.tablesCount = tables.length;
@ -297,7 +297,7 @@ async function populateMeta(base: Base, project: Project): Promise<any> {
}); });
/* filter based on prefix */ /* filter based on prefix */
if (project?.prefix) { if (base.is_meta && project?.prefix) {
views = tables.filter((t) => { views = tables.filter((t) => {
return t?.tn?.startsWith(project?.prefix); return t?.tn?.startsWith(project?.prefix);
}); });

Loading…
Cancel
Save