mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-08 20:25:19 +02:00
fix: use centralized cache keys instead of hardcoded string
This commit is contained in:
parent
92e2414ff7
commit
920ac210c7
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ export const acceptInviteMutationAtom = atomWithMutation(() => ({
|
|||
return invitesApiService.acceptInvite(request);
|
||||
},
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ["search-spaces"] });
|
||||
queryClient.invalidateQueries({ queryKey: cacheKeys.searchSpaces.all });
|
||||
toast.success("Invite accepted successfully");
|
||||
},
|
||||
onError: (error: Error) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue