|
|
@ -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 } } : {}), |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|