Browse Source

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

pull/5430/head
Wing-Kam Wong 2 years ago
parent
commit
36300a235e
  1. 12
      packages/nocodb/src/lib/models/GalleryViewColumn.ts

12
packages/nocodb/src/lib/models/GalleryViewColumn.ts

@ -79,13 +79,11 @@ export default class GalleryViewColumn {
);
// if cache is not present skip pushing it into the list to avoid unexpected behaviour
if (
(
await NocoCache.getList(CacheScope.GALLERY_VIEW_COLUMN, [
column.fk_view_id,
])
)?.length
)
const { list } = await NocoCache.getList(CacheScope.GALLERY_VIEW_COLUMN, [
column.fk_view_id,
]);
if (list?.length)
await NocoCache.appendToList(
CacheScope.GALLERY_VIEW_COLUMN,
[column.fk_view_id],

Loading…
Cancel
Save