Alerting: Protect possible undefined (#83128)

Protect possible undefined

(cherry picked from commit 16dee3cf1c)
This commit is contained in:
Sonia Aguilar
2024-03-01 17:18:14 +00:00
committed by Andreas Christou
parent 38e8c62972
commit 69e121a499
@@ -59,7 +59,7 @@ export class TimelineChart extends React.Component<TimelineProps> {
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,
});
};