fix: update key references in HumanInputFormList and adjust resume URL in useChat hook

This commit is contained in:
twwu 2026-01-26 14:23:45 +08:00
parent 824f139b46
commit 4ea3cf46fa
2 changed files with 4 additions and 4 deletions

View File

@ -50,11 +50,11 @@ const HumanInputFormList = ({
{ {
filteredHumanInputFormDataList.map(formData => ( filteredHumanInputFormDataList.map(formData => (
<ContentWrapper <ContentWrapper
key={formData.node_id} key={formData.form_id}
nodeTitle={formData.node_title} nodeTitle={formData.node_title}
> >
<UnsubmittedHumanInputContent <UnsubmittedHumanInputContent
key={formData.node_id} key={formData.form_id}
formData={formData} formData={formData}
showEmailTip={!!deliveryMethodsConfig[formData.node_id]?.showEmailTip} showEmailTip={!!deliveryMethodsConfig[formData.node_id]?.showEmailTip}
isEmailDebugMode={!!deliveryMethodsConfig[formData.node_id]?.isEmailDebugMode} isEmailDebugMode={!!deliveryMethodsConfig[formData.node_id]?.isEmailDebugMode}

View File

@ -865,7 +865,7 @@ export const useChat = (
}) })
}, },
onWorkflowPaused: ({ data: workflowPausedData }) => { onWorkflowPaused: ({ data: workflowPausedData }) => {
const resumeUrl = `/apps/${configsMap?.flowId}/workflow/${workflowPausedData.workflow_run_id}/events` const resumeUrl = `/workflow/${workflowPausedData.workflow_run_id}/events`
sseGet( sseGet(
resumeUrl, resumeUrl,
{}, {},
@ -885,7 +885,7 @@ export const useChat = (
{}, {},
otherOptions, otherOptions,
) )
}, [updateChatTreeNode, handleResponding, workflowStore, fetchInspectVars, invalidAllLastRun, config?.suggested_questions_after_answer, configsMap?.flowId]) }, [updateChatTreeNode, handleResponding, workflowStore, fetchInspectVars, invalidAllLastRun, config?.suggested_questions_after_answer])
const handleSwitchSibling = useCallback(( const handleSwitchSibling = useCallback((
siblingMessageId: string, siblingMessageId: string,