Skip to content

Commit

Permalink
🐛 Address retake regression (konveyor#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Apr 12, 2024
1 parent d929226 commit 65012b8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions client/src/app/queries/assessments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,22 @@ export const useDeleteAssessmentMutation = (
}) => {
const deletedAssessment = deleteAssessment(args.assessmentId);

queryClient.invalidateQueries([assessmentQueryKey, args?.assessmentId]);

const isArchetype = !!args.archetypeId;

queryClient.invalidateQueries([
assessmentsByItemIdQueryKey,
args?.archetypeId,
isArchetype,
]);

queryClient.invalidateQueries([
assessmentsByItemIdQueryKey,
args?.applicationId,
isArchetype,
]);

queryClient.invalidateQueries([ApplicationsQueryKey]);
queryClient.invalidateQueries([assessmentsQueryKey]);
queryClient.invalidateQueries([ARCHETYPE_QUERY_KEY, args?.archetypeId]);
Expand Down

0 comments on commit 65012b8

Please sign in to comment.