fix: include workflowStore in dependency array for useChat hook to ensure proper state updates

This commit is contained in:
twwu 2025-12-31 16:52:22 +08:00
parent 52ce46c364
commit 0f13b6b26d
1 changed files with 1 additions and 1 deletions

View File

@ -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)