Skip to content

Commit 0bf52de

Browse files
committed
feat: enhance loading skeleton with improved styles and dynamic row count
1 parent bff41c1 commit 0bf52de

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

adminforth/spa/src/views/ShowView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ const allColumns = computed(() => {
258258
259259
const otherColumns = computed(() => {
260260
const groupedColumnNames = new Set(
261-
groups.value.flatMap(group => group.columns?.map((col: AdminForthResourceColumnCommon) => col.name))
261+
groups.value.flatMap(group => group.columns?.map((col: AdminForthResourceColumnCommon) => col.name) || [])
262262
);
263263
264-
return coreStore.resource?.columns.filter(
264+
return coreStore.resource?.columns?.filter(
265265
col => !groupedColumnNames.has(col.name) && col.showIn?.show
266-
);
266+
) ?? [];
267267
});
268268
269269
async function deleteRecord() {

0 commit comments

Comments
 (0)