Skip to content

Commit

Permalink
fix(admin): in the update competence bloc page invalidating the query…
Browse files Browse the repository at this point in the history
… cache after deleting the competence bloc was causing a refetch error since the competence bloc was not existing anymore
  • Loading branch information
agarbe committed Nov 18, 2024
1 parent 38693c3 commit 23887bf
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ export const useUpdateCompetenceBlocPage = ({
graphqlClient.request(deleteCertificationCompetenceBlocMutation, {
certificationCompetenceBlocId,
}),
onSuccess: () =>
queryClient.invalidateQueries({
queryKey: [certificationCompetenceBlocId],
}),
});

const competenceBloc =
Expand Down

0 comments on commit 23887bf

Please sign in to comment.