diff --git a/frontend/src/containers/Alerts/index.jsx b/frontend/src/containers/Alerts/index.jsx index a43ad1c10..4215bf377 100644 --- a/frontend/src/containers/Alerts/index.jsx +++ b/frontend/src/containers/Alerts/index.jsx @@ -177,6 +177,7 @@ const Alerts = () => { header: 'Successfully Deleted' }); store.dispatch(RESET_DELETE_DATA); + dispatch(getAllAlerts(pgInfo)); } else if (kpiAlertDeleteData && kpiAlertDeleteData.status === 'failure') { customToast({ type: 'error', @@ -184,6 +185,7 @@ const Alerts = () => { description: kpiAlertDeleteData.message }); store.dispatch(RESET_DELETE_DATA); + dispatch(getAllAlerts(pgInfo)); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [kpiAlertDisableData, kpiAlertEnableData, kpiAlertDeleteData]);