add missing dependency to useEffect array
This commit is contained in:
1 parent
71cde317a7
commit
e28aaf4ed7
1 file changed
+1
-2
@@ -217,7 +217,6 @@ const InfrastructureDetails = () => {
|
|||||||
numToDisplay: 50,
|
numToDisplay: 50,
|
||||||
normalize: false,
|
normalize: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
setMonitor(response.data.data);
|
setMonitor(response.data.data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
navigate("/not-found", { replace: true });
|
navigate("/not-found", { replace: true });
|
||||||
@@ -225,7 +224,7 @@ const InfrastructureDetails = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
fetchData();
|
fetchData();
|
||||||
}, [authToken, monitorId, dateRange]);
|
}, [authToken, monitorId, dateRange, navigate]);
|
||||||
|
|
||||||
const statBoxConfigs = [
|
const statBoxConfigs = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user