mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-26 03:39:27 -06:00
Fix: Uptime UseChecks Hook
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user