fix empty incidents

This commit is contained in:
Андрей Бабушкин 2025-05-28 17:25:18 +02:00
parent 256b049e7d
commit 5f976aeb76

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}>