Skip to content

Commit

Permalink
Fix getActiveStudentIep frontend query to stop calling if call failed (
Browse files Browse the repository at this point in the history
  • Loading branch information
hieungo89 authored Oct 31, 2023
1 parent ba93694 commit de4409e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/students/[student_id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ViewStudentPage = () => {

const { data: activeIep } = trpc.student.getActiveStudentIep.useQuery(
{ student_id: student_id as string },
{ enabled: Boolean(student_id) }
{ enabled: Boolean(student_id), retry: false }
);

const archiveMutation = trpc.case_manager.removeStudent.useMutation();
Expand Down

0 comments on commit de4409e

Please sign in to comment.