Skip to content

Commit

Permalink
fix condition when displaying group by panels
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreal1314 committed Jan 15, 2025
1 parent 88ee317 commit 41dd882
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ export const groupPanelRenderer: GroupPanelRenderer<FindingsGroupingAggregation>
);

const getGroupPanelTitle = () => {
if (bucket.resourceName?.buckets) {
const resourceId = bucket.resourceName?.buckets?.[0]?.key;

if (resourceId) {
return (
<>
<strong>{bucket.resourceName.buckets[0]?.key}</strong> - {bucket.key_as_string}
<strong>{resourceId}</strong> - {bucket.key_as_string}
</>
);
}
Expand Down

0 comments on commit 41dd882

Please sign in to comment.