Skip to content

Commit

Permalink
fix: horizontal bar chart formula mode label (#24637)
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhpillai authored Aug 28, 2024
1 parent 5489f76 commit e7e4006
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export function ActionsHorizontalBar({ showPersonsModal = true }: ChartParams):
personsValues: _data.map((item) => item.persons),
breakdownValues: _data.map((item) => item.breakdown_value),
breakdownLabels: _data.map((item) => {
const itemLabel = item.action.custom_name ?? item.action.name ?? item.action.id
const itemLabel = item.action
? item.action.custom_name ?? item.action.name ?? item.action.id
: item.label

if (!item.breakdown_value) {
return itemLabel
}
Expand Down

0 comments on commit e7e4006

Please sign in to comment.