Browse Source

refactor: review suggestions

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

Loading…
Cancel
Save