fix empty incidents (#3448)

This commit is contained in:
Andrey Babushkin 2025-05-28 17:36:26 +02:00 committed by GitHub
parent 256b049e7d
commit 974bbf7e4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ function EventsList() {
style={{ left: `${getTimelinePosition(e.time, scale)}%` }}
/>
))}
{incidents.map((i) => {
{incidents?.map((i) => {
const width = getTimelineEventWidth(endTime, (i as any).time, (i as any).endTime - sessionStart);
return (
<Tooltip title={i.label} key={(i as any).startTime}>