Skip to content

Commit

Permalink
Fix: Uptime UseChecks Hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Br0wnHammer committed Mar 11, 2025
1 parent 5958d4b commit c9e604e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Pages/Uptime/Details/Hooks/useChecksFetch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c9e604e

Please sign in to comment.