mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 01:02:39 +02:00
improve ge chat by search cpace request type
This commit is contained in:
parent
1a954bc184
commit
68e4d9b23e
3 changed files with 22 additions and 11 deletions
|
|
@ -38,7 +38,9 @@ export const activeSearchSpaceChatsAtom = atomWithQuery((get) => {
|
|||
queryKey: cacheKeys.activeSearchSpace.chats(searchSpaceId ?? ""),
|
||||
enabled: !!searchSpaceId && !!authToken,
|
||||
queryFn: async () => {
|
||||
return chatsApiService.getChatsBySearchSpace({ search_space_id: Number(searchSpaceId) });
|
||||
return chatsApiService.getChatsBySearchSpace({
|
||||
queryParams: { search_space_id: searchSpaceId! },
|
||||
});
|
||||
},
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue