removed conditional calling of hook and added early return in useHardwareMonitorsFetch
This commit is contained in:
1 parent
8df78089e6
commit
5c74c0e452
2 files changed
+6
-1
No files matched your search
@@ -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({});
|
||||
|
||||
Reference in new issue
Block a user