Browse Source

fix: chat rename (#3627)

zxhlyh 1 year ago
parent
commit
03c988388e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/app/components/base/chat/chat-with-history/hooks.tsx

+ 1 - 1
web/app/components/base/chat/chat-with-history/hooks.tsx

@@ -157,7 +157,7 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {
     handleNewConversationInputsChange(conversationInputs)
   }, [handleNewConversationInputsChange, inputsForms])
 
-  const { data: newConversation } = useSWR(newConversationId ? [isInstalledApp, appId, newConversationId] : null, () => generationConversationName(isInstalledApp, appId, newConversationId))
+  const { data: newConversation } = useSWR(newConversationId ? [isInstalledApp, appId, newConversationId] : null, () => generationConversationName(isInstalledApp, appId, newConversationId), { revalidateOnFocus: false })
   const [originConversationList, setOriginConversationList] = useState<ConversationItem[]>([])
   useEffect(() => {
     if (appConversationData?.data && !appConversationDataLoading)