diff --git a/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx b/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx index 258b550cd..97319e938 100644 --- a/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx +++ b/frontend/app/components/Dashboard/components/Alerts/NewAlert.tsx @@ -96,7 +96,9 @@ const NewAlert = (props: IProps) => { const alertId = location.pathname.split('/').pop(); const currentAlert = list .find((alert: Alert) => alert.alertId === String(alertId)); - init(currentAlert || {}); + if (currentAlert) { + init(currentAlert) + } } }, [list]);