Browse Source

fix: add source_id filter when getting table list

pull/8735/head
Pranav C 6 months ago
parent
commit
470246477c
  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; let { list: modelList } = cachedList;
const { isNoneList } = cachedList; const { isNoneList } = cachedList;
let condition;
if(source_id){
condition = { source_id }
}
if (!isNoneList && !modelList.length) { if (!isNoneList && !modelList.length) {
modelList = await ncMeta.metaList2( modelList = await ncMeta.metaList2(
context.workspace_id, context.workspace_id,
@ -245,6 +251,7 @@ export default class Model implements TableType {
orderBy: { orderBy: {
order: 'asc', order: 'asc',
}, },
condition,
}, },
); );

Loading…
Cancel
Save