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 => (
<ContentWrapper
key={formData.node_id}
key={formData.form_id}
nodeTitle={formData.node_title}
>
<UnsubmittedHumanInputContent
key={formData.node_id}
key={formData.form_id}
formData={formData}
showEmailTip={!!deliveryMethodsConfig[formData.node_id]?.showEmailTip}
isEmailDebugMode={!!deliveryMethodsConfig[formData.node_id]?.isEmailDebugMode}

View File

@ -865,7 +865,7 @@ export const useChat = (
})
},
onWorkflowPaused: ({ data: workflowPausedData }) => {
const resumeUrl = `/apps/${configsMap?.flowId}/workflow/${workflowPausedData.workflow_run_id}/events`
const resumeUrl = `/workflow/${workflowPausedData.workflow_run_id}/events`
sseGet(
resumeUrl,
{},
@ -885,7 +885,7 @@ export const useChat = (
{},
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((
siblingMessageId: string,