Skip to content

Commit

Permalink
Fixed browser error about memory
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Apr 29, 2020
1 parent 16f3e32 commit 8153c68
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const AlertInstancesRoute: React.FunctionComponent<WithAlertStateProps> =

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

return alertState ? (
<AlertInstances requestRefresh={requestRefresh} alert={alert} alertState={alertState} />
Expand Down

0 comments on commit 8153c68

Please sign in to comment.