add missing dependency to useEffect array

This commit is contained in:
Alex Holliday
2024-11-25 11:22:19 +08:00
parent 71cde317a7
commit e28aaf4ed7
@@ -217,7 +217,6 @@ const InfrastructureDetails = () => {
numToDisplay: 50,
normalize: false,
});
setMonitor(response.data.data);
} catch (error) {
navigate("/not-found", { replace: true });
@@ -225,7 +224,7 @@ const InfrastructureDetails = () => {
}
};
fetchData();
}, [authToken, monitorId, dateRange]);
}, [authToken, monitorId, dateRange, navigate]);
const statBoxConfigs = [
{