Browse Source

Merge pull request #8735 from nocodb/nc-fix/meta-sync

fix: Add source_id filter when getting table list
pull/8737/head
Pranav C 7 months ago committed by GitHub
parent
commit
8737e1cda0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      packages/nocodb/src/models/Model.ts

7
packages/nocodb/src/models/Model.ts

@ -236,6 +236,12 @@ export default class Model implements TableType {
]);
let { list: modelList } = cachedList;
const { isNoneList } = cachedList;
let condition;
if(source_id){
condition = { source_id }
}
if (!isNoneList && !modelList.length) {
modelList = await ncMeta.metaList2(
context.workspace_id,
@ -245,6 +251,7 @@ export default class Model implements TableType {
orderBy: {
order: 'asc',
},
condition,
},
);

Loading…
Cancel
Save