Skip to content

Commit

Permalink
fix(ESSNTL-4730): Disable sorting for the Group column (#1856)
Browse files Browse the repository at this point in the history
* Make the group column static

* Fix renderFunc for the group column
  • Loading branch information
gkarat authored May 9, 2023
1 parent 2f0a7e2 commit f8621ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}] : []),
{
Expand Down

0 comments on commit f8621ba

Please sign in to comment.