Skip to content

Commit

Permalink
🐛 Address retake regression (#1842) (#1845)
Browse files Browse the repository at this point in the history
Resolves https://issues.redhat.com/browse/MTA-2616

Regression caused by:

https://github.com/konveyor/tackle2-ui/pull/1811/files#diff-ecd17d80b98373a12f2bff08592b3c11fd40b31658c42eaec589f45e05d9714cL123

Signed-off-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>

Signed-off-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
  • Loading branch information
konveyor-ci-bot[bot] and ibolton336 authored Apr 14, 2024
1 parent 43cd5e9 commit 21d95f6
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 21d95f6

Please sign in to comment.