removed conditional calling of hook and added early return in useHardwareMonitorsFetch

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-03-18 12:18:52 -04:00
1 parent 8df78089e6
commit 5c74c0e452
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ const CreateInfrastructureMonitor = () => {
const isCreate = typeof monitorId === "undefined";
// Fetch monitor details if editing
const { monitor, isLoading, networkError } = isCreate ? {} : useHardwareMonitorsFetch({ monitorId });
const { monitor, isLoading, networkError } = useHardwareMonitorsFetch({ monitorId });
// State
const [errors, setErrors] = useState({});