From fedf3e2e6e1a86fbb7c231f685faa537f277aed5 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 18:02:06 +0000 Subject: [PATCH] [v10.4.x] Alerting: Protect possible undefined (#83186) Alerting: Protect possible undefined (#83128) Protect possible undefined (cherry picked from commit 16dee3cf1c540f9cffbc1a01aa275fb15a143300) Co-authored-by: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> --- public/app/core/components/TimelineChart/TimelineChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/components/TimelineChart/TimelineChart.tsx b/public/app/core/components/TimelineChart/TimelineChart.tsx index 524296eefba..9fb1c4ed748 100644 --- a/public/app/core/components/TimelineChart/TimelineChart.tsx +++ b/public/app/core/components/TimelineChart/TimelineChart.tsx @@ -59,7 +59,7 @@ export class TimelineChart extends React.Component { rowHeight: alignedFrame.fields.length > 2 ? this.props.rowHeight : 1, getValueColor: this.getValueColor, // @ts-ignore - hoverMulti: this.props.tooltip.mode === TooltipDisplayMode.Multi, + hoverMulti: this.props.tooltip?.mode === TooltipDisplayMode.Multi, }); };