add update trigger prop

This commit is contained in:
Alex Holliday committed 2025-06-16 11:13:45 +08:00
1 parent 1a198c28ee
commit 90a5fe946a
1 file changed
+2 -1
+2 -1
View File
@@ -170,6 +170,7 @@ const useFetchStatsByMonitorId = ({
dateRange, dateRange,
numToDisplay, numToDisplay,
normalize, normalize,
updateTrigger,
}) => { }) => {
const [monitor, setMonitor] = useState(undefined); const [monitor, setMonitor] = useState(undefined);
const [audits, setAudits] = useState(undefined); const [audits, setAudits] = useState(undefined);
@@ -197,7 +198,7 @@ const useFetchStatsByMonitorId = ({
} }
}; };
fetchMonitor(); fetchMonitor();
}, [monitorId, dateRange, numToDisplay, normalize, sortOrder, limit]); }, [monitorId, dateRange, numToDisplay, normalize, sortOrder, limit, updateTrigger]);
return [monitor, audits, isLoading, networkError]; return [monitor, audits, isLoading, networkError];
}; };