Skip to content

Commit 8153c68

Browse files
committed
Fixed browser error about memory
1 parent 16f3e32 commit 8153c68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

x-pack/plugins/triggers_actions_ui/public/application/sections/alert_details/components/alert_instances_route.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export const AlertInstancesRoute: React.FunctionComponent<WithAlertStateProps> =
3232

3333
useEffect(() => {
3434
getAlertState(alert.id, loadAlertState, setAlertState, toastNotifications);
35-
}, [alert, loadAlertState, toastNotifications]);
35+
// eslint-disable-next-line react-hooks/exhaustive-deps
36+
}, [alert]);
3637

3738
return alertState ? (
3839
<AlertInstances requestRefresh={requestRefresh} alert={alert} alertState={alertState} />

0 commit comments

Comments
 (0)