|
|
@ -97,10 +97,12 @@ export default class GalleryViewColumn { |
|
|
|
viewId: string, |
|
|
|
viewId: string, |
|
|
|
ncMeta = Noco.ncMeta |
|
|
|
ncMeta = Noco.ncMeta |
|
|
|
): Promise<GalleryViewColumn[]> { |
|
|
|
): Promise<GalleryViewColumn[]> { |
|
|
|
let views = await NocoCache.getList(CacheScope.GALLERY_VIEW_COLUMN, [ |
|
|
|
const cachedList = await NocoCache.getList(CacheScope.GALLERY_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, |
|
|
|