diff --git a/frontend/src/PagesAdmin/RecruitmentRecruiterDashboardPage/RecruitmentRecruiterDashboardPage.tsx b/frontend/src/PagesAdmin/RecruitmentRecruiterDashboardPage/RecruitmentRecruiterDashboardPage.tsx index 5360bfe12..3170c93b8 100644 --- a/frontend/src/PagesAdmin/RecruitmentRecruiterDashboardPage/RecruitmentRecruiterDashboardPage.tsx +++ b/frontend/src/PagesAdmin/RecruitmentRecruiterDashboardPage/RecruitmentRecruiterDashboardPage.tsx @@ -24,8 +24,9 @@ export function RecruitmentRecruiterDashboardPage() { const [applications, setApplications] = useState(); const [loading, setLoading] = useState(true); + // biome-ignore lint/correctness/useExhaustiveDependencies: navigate must not be in deplist useEffect(() => { - if (recruitmentId) { + if (!recruitmentId) return; getRecruitmentRecruiterDashboard(recruitmentId) .then((resp) => { setRecruitment(resp.data.recruitment); @@ -38,8 +39,7 @@ export function RecruitmentRecruiterDashboardPage() { navigate({ url: ROUTES.frontend.not_found }); } }); - } - }, [navigate, recruitmentId, t]); + }, [recruitmentId, t]); if (!recruitmentId) { navigate({ url: ROUTES.frontend.not_found });