mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 20:17:29 +08:00
fix: update key references in HumanInputFormList and adjust resume URL in useChat hook
This commit is contained in:
parent
824f139b46
commit
4ea3cf46fa
@ -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}
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user