update statevalues to use undefined

This commit is contained in:
Vishnu Sreekumaran Nair
2025-03-19 15:50:36 -04:00
parent 143d3ea7c6
commit ced3ad1757

View File

@@ -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);