Alerting: Protect possible undefined (#83128)

Protect possible undefined
This commit is contained in:
Sonia Aguilar 2024-02-20 21:17:40 +01:00 committed by GitHub
parent f2c0309d71
commit 16dee3cf1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
});
};