diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/waterfall/waterfall_chart_wrapper.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/waterfall/waterfall_chart_wrapper.tsx index 64608298ab278..9c8d81804489e 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/waterfall/waterfall_chart_wrapper.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/waterfall/waterfall_chart_wrapper.tsx @@ -128,16 +128,16 @@ export const WaterfallChartWrapper: React.FC = ({ data, total, markerItem `${Number(d).toFixed(0)} ms`, [])} domain={domain} - barStyleAccessor={useCallback((datum) => { - if (!datum.datum.config.isHighlighted) { + barStyleAccessor={useCallback(({ datum }) => { + if (!datum.config?.isHighlighted) { return { rect: { - fill: datum.datum.config.colour, + fill: datum.config?.colour, opacity: '0.1', }, }; } - return datum.datum.config.colour; + return datum.config.colour; }, [])} renderSidebarItem={renderSidebarItem} renderLegendItem={renderLegendItem}