mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 22:57:26 +08:00
fix: inputs overwrite by curr item
This commit is contained in:
parent
a0e1eeb3f1
commit
ab814e3eac
@ -328,7 +328,7 @@ export const useEmbeddedChatbot = (appSourceType: AppSourceType, tryAppId?: stri
|
||||
}, [appChatListData, currentConversationId])
|
||||
const [currentConversationInputs, setCurrentConversationInputs] = useState<Record<string, any>>(currentConversationLatestInputs || {})
|
||||
useEffect(() => {
|
||||
if (currentConversationItem)
|
||||
if (currentConversationItem && !isTryApp)
|
||||
setCurrentConversationInputs(currentConversationLatestInputs || {})
|
||||
}, [currentConversationItem, currentConversationLatestInputs])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user