From f2c7335f883cd8354c787a2231f67f61d4ef2d6d Mon Sep 17 00:00:00 2001 From: Chisomchima Date: Thu, 14 Nov 2024 15:13:29 +0100 Subject: [PATCH] fix: add custom attributes to category option --- .../listViews/sectionListViewsConfig.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lib/sectionList/listViews/sectionListViewsConfig.ts b/src/lib/sectionList/listViews/sectionListViewsConfig.ts index 002284f1..1d0a0978 100644 --- a/src/lib/sectionList/listViews/sectionListViewsConfig.ts +++ b/src/lib/sectionList/listViews/sectionListViewsConfig.ts @@ -59,6 +59,7 @@ export const defaultModelViewConfig = { 'createdBy', 'href', 'id', + 'lastUpdatedBy', DESCRIPTORS.publicAccess, ], default: ['name', DESCRIPTORS.publicAccess, 'lastUpdated'], @@ -107,7 +108,19 @@ export const modelListViewsConfig = { }, }, categoryOption: { - columns: {}, + columns: { + available: [ + 'name', + 'code', + 'created', + 'createdBy', + 'href', + 'id', + DESCRIPTORS.publicAccess, + ], + default: ['name', DESCRIPTORS.publicAccess, 'lastUpdated'], + overrideDefaultAvailable: true, + }, filters: { default: ['category', 'categoryOptionGroup'], },