Merge pull request #2462 from bluewave-labs/fix/infrastructure-header

fix: add universal header to infra details
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-06-16 11:35:20 +08:00
commit 7c76125a0a
2 files changed
+16 -8

No files matched your search

+2 -2
View File
@@ -221,7 +221,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);
@@ -244,7 +244,7 @@ const useFetchHardwareMonitorById = ({ monitorId, dateRange }) => {
}
};
fetchMonitor();
}, [monitorId, dateRange]);
}, [monitorId, dateRange, updateTrigger]);
return [monitor, isLoading, networkError];
};