|
|
@ -85,10 +85,12 @@ export default class KanbanViewColumn implements KanbanColumnType { |
|
|
|
viewId: string, |
|
|
|
viewId: string, |
|
|
|
ncMeta = Noco.ncMeta |
|
|
|
ncMeta = Noco.ncMeta |
|
|
|
): Promise<KanbanViewColumn[]> { |
|
|
|
): Promise<KanbanViewColumn[]> { |
|
|
|
let views = await NocoCache.getList(CacheScope.KANBAN_VIEW_COLUMN, [ |
|
|
|
const cachedList = await NocoCache.getList(CacheScope.KANBAN_VIEW_COLUMN, [ |
|
|
|
viewId, |
|
|
|
viewId, |
|
|
|
]); |
|
|
|
]); |
|
|
|
if (!views.length) { |
|
|
|
let { list: views } = cachedList; |
|
|
|
|
|
|
|
const { isEmptyList } = cachedList; |
|
|
|
|
|
|
|
if (!isEmptyList && !views.length) { |
|
|
|
views = await ncMeta.metaList2( |
|
|
|
views = await ncMeta.metaList2( |
|
|
|
null, |
|
|
|
null, |
|
|
|
null, |
|
|
|
null, |
|
|
|