mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +01:00
🤖 fix: Minor Assistants Endpoint Fixes (#2472)
* fix(useCreateAssistantMutation): force re-render of assistants map by avoiding use shallow reference of listRes.data * fix(AppService): regression by not including azure assistant defaults when no assistant endpoint values are set
This commit is contained in:
parent
3d1dec62a4
commit
e6310c806a
4 changed files with 48 additions and 17 deletions
|
|
@ -315,8 +315,7 @@ export const useCreateAssistantMutation = (
|
|||
return options?.onSuccess?.(newAssistant, variables, context);
|
||||
}
|
||||
|
||||
const currentAssistants = listRes.data;
|
||||
currentAssistants.push(newAssistant);
|
||||
const currentAssistants = [newAssistant, ...JSON.parse(JSON.stringify(listRes.data))];
|
||||
|
||||
queryClient.setQueryData<AssistantListResponse>([QueryKeys.assistants, defaultOrderQuery], {
|
||||
...listRes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue