🔧 fix: Allow Azure Assistants Chats to be Deleted (#3893)

This commit is contained in:
Sebastian Diez 2024-10-29 13:09:35 +01:00 committed by GitHub
parent 2b0654bb2c
commit f270455be6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 6 deletions

View file

@ -44,8 +44,9 @@ export function DeleteConversationDialog({
const confirmDelete = useCallback(() => {
const messages = queryClient.getQueryData<TMessage[]>([QueryKeys.messages, conversationId]);
const thread_id = messages?.[messages.length - 1]?.thread_id;
const endpoint = messages?.[messages.length - 1]?.endpoint;
deleteConvoMutation.mutate({ conversationId, thread_id, source: 'button' });
deleteConvoMutation.mutate({ conversationId, thread_id, endpoint, source: 'button' });
}, [conversationId, deleteConvoMutation, queryClient]);
return (