Skip to content

Commit

Permalink
fix: chat restart (langgenius#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhlyh authored Feb 20, 2024
1 parent 5ff6b1d commit eedbe1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/app/components/base/chat/chat/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ export const useChat = (
}, [stopChat, handleResponsing])

const handleRestart = useCallback(() => {
handleStop()
connversationId.current = ''
taskIdRef.current = ''
handleStop()
const newChatList = config?.opening_statement
? [{
id: `${Date.now()}`,
Expand Down

0 comments on commit eedbe1b

Please sign in to comment.