Browse Source

refactor(nocodb): adopt getList new format in KanbanViewColumn.ts

pull/5430/head
Wing-Kam Wong 2 years ago
parent
commit
81c4d6bf92
  1. 6
      packages/nocodb/src/lib/models/KanbanViewColumn.ts

6
packages/nocodb/src/lib/models/KanbanViewColumn.ts

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

Loading…
Cancel
Save