From 16dee3cf1c540f9cffbc1a01aa275fb15a143300 Mon Sep 17 00:00:00 2001 From: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Date: Tue, 20 Feb 2024 21:17:40 +0100 Subject: [PATCH] Alerting: Protect possible undefined (#83128) Protect possible undefined --- 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, }); };