mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 17:39:20 +08:00
fix(workflow): handle node inspection variable deletion when not fetched
This commit is contained in:
@@ -1040,12 +1040,18 @@ const useOneStepRun = <T>({
|
||||
const {
|
||||
workflowRunningData,
|
||||
setWorkflowRunningData,
|
||||
nodesWithInspectVars,
|
||||
deleteNodeInspectVars,
|
||||
} = workflowStore.getState()
|
||||
if (workflowRunningData) {
|
||||
setWorkflowRunningData(produce(workflowRunningData, (draft) => {
|
||||
draft.result.status = WorkflowRunningStatus.Stopped
|
||||
}))
|
||||
}
|
||||
|
||||
const inspectNode = nodesWithInspectVars.find(node => node.nodeId === id)
|
||||
if (inspectNode && !inspectNode.isValueFetched && (!inspectNode.vars || inspectNode.vars.length === 0))
|
||||
deleteNodeInspectVars(id)
|
||||
}, [
|
||||
isTriggerNode,
|
||||
runningStatus,
|
||||
|
||||
Reference in New Issue
Block a user