Fix: Uptime UseChecks Hook

This commit is contained in:
Br0wnHammer
2025-03-11 22:27:43 +05:30
parent 5958d4b81c
commit c9e604efed

View File

@@ -9,7 +9,9 @@ export const useChecksFetch = ({ monitorId, monitorType, dateRange, page, rowsPe
const [networkError, setNetworkError] = useState(false);
useEffect(() => {
if (!monitorType) return;
if (!monitorType) {
throw new Error('Monitor Type is not provided. Fetching checks will not proceed.');
}
const fetchChecks = async () => {
try {