Replace current page with 404 when navigating to not-found

This commit is contained in:
Alex Holliday committed 2024-08-19 13:43:27 -07:00
1 parent 78e0f41f5a
commit 9eb92903ad
1 file changed
+1 -1
+1 -1
View File
@@ -132,7 +132,7 @@ const DetailsPage = () => {
setMonitor(res.data.data);
} catch (error) {
console.error("Error fetching monitor of id: " + monitorId);
navigate("/not-found");
navigate("/not-found", { replace: true });
}
}, [authToken, monitorId, navigate, dateRange]);