Browse Source

refactor: review suggestions

pull/8737/head
Pranav C 7 months ago
parent
commit
c467598895
  1. 7
      packages/nocodb/src/models/Model.ts

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

@ -237,11 +237,6 @@ 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,
@ -251,7 +246,7 @@ export default class Model implements TableType {
orderBy: { orderBy: {
order: 'asc', order: 'asc',
}, },
condition, ...(source_id ? { condition: { source_id } } : {}),
}, },
); );

Loading…
Cancel
Save