update statevalues to use undefined
This commit is contained in:
1 parent
143d3ea7c6
commit
ced3ad1757
1 file changed
+1
-1
@@ -5,7 +5,7 @@ const useHardwareMonitorsFetch = ({ monitorId, dateRange }) => {
|
|||||||
|
|
||||||
// Abort early if creating monitor
|
// Abort early if creating monitor
|
||||||
if (!monitorId) {
|
if (!monitorId) {
|
||||||
return { monitor: null, isLoading: false, networkError: null };
|
return { monitor: undefined, isLoading: false, networkError: undefined };
|
||||||
}
|
}
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
const [networkError, setNetworkError] = useState(false);
|
const [networkError, setNetworkError] = useState(false);
|
||||||
|
|||||||
Reference in new issue
Block a user