From f8621baed2a65c5e77df649f1068ce61b2a31313 Mon Sep 17 00:00:00 2001 From: Georgy Karataev Date: Tue, 9 May 2023 14:38:06 +0200 Subject: [PATCH] fix(ESSNTL-4730): Disable sorting for the Group column (#1856) * Make the group column static * Fix renderFunc for the group column --- src/store/entities.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/entities.js b/src/store/entities.js index 8e16d9f2d..f091a6867 100644 --- a/src/store/entities.js +++ b/src/store/entities.js @@ -50,9 +50,9 @@ export const defaultColumns = (groupsEnabled = false) => ([ key: 'groups', sortKey: 'groups', title: 'Group', - props: { width: 10 }, + props: { width: 10, isStatic: true }, // eslint-disable-next-line camelcase - renderFunc: (value, systemId, { group_name }) => isEmpty(group_name) ? 'N/A' : group_name, + renderFunc: (groups) => isEmpty(groups) ? 'N/A' : groups[0].name, // currently, one group at maximum is supported transforms: [fitContent] }] : []), {