mirror of https://github.com/langgenius/dify.git
fix: chat restart (#2488)
This commit is contained in:
parent
5ff6b1da07
commit
eedbe1b770
|
|
@ -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()}`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue