add universal header to infra details

This commit is contained in:
Alex Holliday committed 2025-06-16 11:17:09 +08:00
1 parent c90fb9dd08
commit f30529e8a2
2 files changed
+16 -8

No files matched your search

+2 -2
View File
@@ -220,7 +220,7 @@ const useFetchMonitorById = ({ monitorId, setMonitor, updateTrigger }) => {
return [isLoading];
};
const useFetchHardwareMonitorById = ({ monitorId, dateRange }) => {
const useFetchHardwareMonitorById = ({ monitorId, dateRange, updateTrigger }) => {
const [isLoading, setIsLoading] = useState(true);
const [networkError, setNetworkError] = useState(false);
const [monitor, setMonitor] = useState(undefined);
@@ -243,7 +243,7 @@ const useFetchHardwareMonitorById = ({ monitorId, dateRange }) => {
}
};
fetchMonitor();
}, [monitorId, dateRange]);
}, [monitorId, dateRange, updateTrigger]);
return [monitor, isLoading, networkError];
};