From de4409ea8a4c662f7b6d80f18e6cd7dc59c3b3de Mon Sep 17 00:00:00 2001 From: Hieu Ngo Date: Mon, 30 Oct 2023 18:37:17 -0700 Subject: [PATCH] Fix getActiveStudentIep frontend query to stop calling if call failed (#229) --- src/pages/students/[student_id].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/students/[student_id].tsx b/src/pages/students/[student_id].tsx index d665a37a..71f5d761 100644 --- a/src/pages/students/[student_id].tsx +++ b/src/pages/students/[student_id].tsx @@ -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();