From 23887bf50d17a602b5ba21b33a0334e498330598 Mon Sep 17 00:00:00 2001 From: Alexandre Garbe Date: Mon, 18 Nov 2024 11:06:28 +0100 Subject: [PATCH] fix(admin): in the update competence bloc page invalidating the query cache after deleting the competence bloc was causing a refetch error since the competence bloc was not existing anymore --- .../updateCompetenceBloc.hook.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/reva-admin-react/src/app/(admin)/certifications-v2/[certificationId]/bloc-competence/[certificationCompetenceBlocId]/updateCompetenceBloc.hook.ts b/packages/reva-admin-react/src/app/(admin)/certifications-v2/[certificationId]/bloc-competence/[certificationCompetenceBlocId]/updateCompetenceBloc.hook.ts index d435c28d9..144c18c68 100644 --- a/packages/reva-admin-react/src/app/(admin)/certifications-v2/[certificationId]/bloc-competence/[certificationCompetenceBlocId]/updateCompetenceBloc.hook.ts +++ b/packages/reva-admin-react/src/app/(admin)/certifications-v2/[certificationId]/bloc-competence/[certificationCompetenceBlocId]/updateCompetenceBloc.hook.ts @@ -88,10 +88,6 @@ export const useUpdateCompetenceBlocPage = ({ graphqlClient.request(deleteCertificationCompetenceBlocMutation, { certificationCompetenceBlocId, }), - onSuccess: () => - queryClient.invalidateQueries({ - queryKey: [certificationCompetenceBlocId], - }), }); const competenceBloc =