From ced3ad17575a2a9323ca2f6b85875c36bd103791 Mon Sep 17 00:00:00 2001 From: Vishnu Sreekumaran Nair <200557136@student.georgianc.on.ca> Date: Wed, 19 Mar 2025 15:50:36 -0400 Subject: [PATCH] update statevalues to use undefined --- .../Infrastructure/Details/Hooks/useHardwareMonitorsFetch.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pages/Infrastructure/Details/Hooks/useHardwareMonitorsFetch.jsx b/src/Pages/Infrastructure/Details/Hooks/useHardwareMonitorsFetch.jsx index 229561966..dfdf92715 100644 --- a/src/Pages/Infrastructure/Details/Hooks/useHardwareMonitorsFetch.jsx +++ b/src/Pages/Infrastructure/Details/Hooks/useHardwareMonitorsFetch.jsx @@ -5,7 +5,7 @@ const useHardwareMonitorsFetch = ({ monitorId, dateRange }) => { // Abort early if creating monitor if (!monitorId) { - return { monitor: null, isLoading: false, networkError: null }; + return { monitor: undefined, isLoading: false, networkError: undefined }; } const [isLoading, setIsLoading] = useState(true); const [networkError, setNetworkError] = useState(false);