mirror of https://github.com/langgenius/dify.git
fix: include workflowStore in dependency array for useChat hook to ensure proper state updates
This commit is contained in:
parent
52ce46c364
commit
0f13b6b26d
|
|
@ -550,7 +550,7 @@ export const useChat = (
|
|||
},
|
||||
},
|
||||
)
|
||||
}, [threadMessages, chatTree.length, updateCurrentQAOnTree, handleResponding, formSettings?.inputsForm, handleRun, notify, t, config?.suggested_questions_after_answer?.enabled, fetchInspectVars, invalidAllLastRun])
|
||||
}, [threadMessages, chatTree.length, updateCurrentQAOnTree, handleResponding, formSettings?.inputsForm, handleRun, notify, t, workflowStore, fetchInspectVars, invalidAllLastRun, config?.suggested_questions_after_answer?.enabled])
|
||||
|
||||
const handleSubmitHumanInputForm = async (formID: string, formData: any) => {
|
||||
await submitHumanInputForm(formID, formData)
|
||||
|
|
|
|||
Loading…
Reference in New Issue