From e7e400638db8c2bb145c673e05c460afba971570 Mon Sep 17 00:00:00 2001 From: Anirudh Pillai Date: Wed, 28 Aug 2024 11:13:16 +0100 Subject: [PATCH] fix: horizontal bar chart formula mode label (#24637) --- frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx b/frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx index 9866e42c4cf56..2b26b5f36d8ed 100644 --- a/frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx +++ b/frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx @@ -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 }