mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-30 11:26:24 +02:00
fix: correct UpdateSearchSpaceRequest structure in mutation atom
This commit is contained in:
parent
d3dd2fc886
commit
46061f64ee
1 changed files with 2 additions and 2 deletions
|
|
@ -40,9 +40,9 @@ export const updateSearchSpaceMutationAtom = atomWithMutation((get) => {
|
|||
queryClient.invalidateQueries({
|
||||
queryKey: cacheKeys.searchSpaces.all,
|
||||
});
|
||||
if (request.pathParams?.search_space_id) {
|
||||
if (request.id) {
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: cacheKeys.searchSpaces.detail(request.pathParams.search_space_id),
|
||||
queryKey: cacheKeys.searchSpaces.detail(request.id),
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue