update statevalues to use undefined

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-03-19 15:50:36 -04:00
1 parent 143d3ea7c6
commit ced3ad1757
1 file changed
+1 -1
@@ -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);