diff --git a/src/components/AIChat/AIChat.tsx b/src/components/AIChat/AIChat.tsx index a45f2d540..119f2d977 100644 --- a/src/components/AIChat/AIChat.tsx +++ b/src/components/AIChat/AIChat.tsx @@ -268,6 +268,11 @@ export function AIChat(props: AIChatProps) { }); queryClient.invalidateQueries(getAiCourseLimitOptions()); + queryClient.invalidateQueries({ + predicate: (query) => { + return query.queryKey[0] === 'list-chat-history'; + }, + }); }, onDetails: (details) => { const detailsJson = JSON.parse(details); @@ -378,7 +383,7 @@ export function AIChat(props: AIChatProps) { }, []); return ( -