From 53f1b0e5869ee507644063d793a7925c880dc3b5 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Wed, 29 Apr 2026 12:24:34 +0800 Subject: [PATCH] fix(web): node executionStatus update remove silent --- web/src/views/Workflow/hooks/useWorkflowGraph.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/views/Workflow/hooks/useWorkflowGraph.ts b/web/src/views/Workflow/hooks/useWorkflowGraph.ts index 500a4527..0fda2935 100644 --- a/web/src/views/Workflow/hooks/useWorkflowGraph.ts +++ b/web/src/views/Workflow/hooks/useWorkflowGraph.ts @@ -134,7 +134,7 @@ export const useWorkflowGraph = ({ const data = node.getData() if (data?.type === 'if-else' || data?.type === 'question-classifier') { console.log('chatVariables', chatVariables) - node.setData({ ...data, chatVariables }, { silent: true }) + node.setData({ ...data, chatVariables }) } }) }, [chatVariables]) @@ -1709,7 +1709,7 @@ export const useWorkflowGraph = ({ // Reset all node execution status on every chatHistory change nodes.forEach(node => { const data = node.getData(); - node.setData({ ...data, executionStatus: '' }, { silent: true }); + node.setData({ ...data, executionStatus: '' }); }); const lastAssistant = [...chatHistory].reverse().find(item => item.role === 'assistant'); @@ -1718,7 +1718,7 @@ export const useWorkflowGraph = ({ if (typeof sub.status === 'string') { const node = nodes.find(n => n.getData()?.id === sub.node_id); if (node) { - node.setData({ ...node.getData(), executionStatus: sub.status }, { silent: true }); + node.setData({ ...node.getData(), executionStatus: sub.status }); } } });