We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4b6260 commit d3f9849Copy full SHA for d3f9849
static/app/components/events/autofix/useSeerAcknowledgeMutation.tsx
@@ -21,9 +21,21 @@ export function useSeerAcknowledgeMutation() {
21
});
22
},
23
onSuccess: () => {
24
+ // Invalidate organization-level setup check
25
queryClient.invalidateQueries({
26
queryKey: [setupCheckQueryKey(organization.slug)],
27
28
+ // Invalidate all group-level autofix setup queries
29
+ queryClient.invalidateQueries({
30
+ predicate: query => {
31
+ const key = query.queryKey[0];
32
+ return (
33
+ typeof key === 'string' &&
34
+ key.includes(`/organizations/${organization.slug}/issues/`) &&
35
+ key.includes('/autofix/setup/')
36
+ );
37
+ },
38
+ });
39
40
41
0 commit comments