(
@@ -84,7 +85,7 @@ export function ErrorDistribution({ distribution, title }: Props) {
};
return (
-
+ <>
{title}
@@ -124,7 +125,7 @@ export function ErrorDistribution({ distribution, title }: Props) {
alerts: alerts?.filter(
(alert) => alert[RULE_ID]?.[0] === AlertType.ErrorCount
),
- chartStartTime: buckets[0].x0,
+ chartStartTime: buckets[0]?.x0,
getFormatter,
selectedAlertId,
setSelectedAlertId,
@@ -143,6 +144,6 @@ export function ErrorDistribution({ distribution, title }: Props) {
-
+ >
);
}