Skip to content

Commit

Permalink
Fix render function for the group column
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Aug 31, 2023
1 parent 88607fd commit 45f81a6
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/Helpers/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,17 +699,8 @@ export const SYSTEMS_HEADER = [
title: 'Group',
inventoryGroupsFeatureFlag: true,
isShownByDefault: true,
renderFunc: (data, value, groups) =>
isEmpty(groups?.groups) ? (
'N/A'
) : (
//TODO: replace <a> with Link component when react router is updated
<a href={`/insights/inventory/groups/${groups?.groups[0].id}`}>
{
groups?.groups[0].name // currently, one group at maximum is supported
}
</a>
)
renderFunc: (data, value, { inventory_group: group }) =>
isEmpty(group) ? 'N/A' : group[0].name // currently, one group at maximum is supported
},
{
key: 'tags',
Expand Down

0 comments on commit 45f81a6

Please sign in to comment.