From 8d0e6469127b33c9cd190c8c9c5310a812ad3c7e Mon Sep 17 00:00:00 2001 From: zhsama Date: Tue, 10 Feb 2026 19:45:46 +0800 Subject: [PATCH] fix: Fix sub graph code node step error --- .../_base/components/workflow-panel/last-run/use-last-run.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts index a66ba9cdae..9a2044390e 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/last-run/use-last-run.ts @@ -454,8 +454,11 @@ const useLastRun = ({ return } const vars = dependentVars + const canDirectRun = isAggregatorNode ? checkAggregatorVarsSet(vars) : isAllVarsHasValue(vars) + const singleRunForms = Array.isArray(singleRunParams?.forms) ? singleRunParams.forms as FormProps[] : [] + const canAutoRunWithFilteredForms = getFilteredExistVarForms(singleRunForms).length === 0 // no need to input params - if (isAggregatorNode ? checkAggregatorVarsSet(vars) : isAllVarsHasValue(vars)) { + if (canDirectRun || canAutoRunWithFilteredForms) { callRunApi({}, async () => { setIsRunAfterSingleRun(true) setNodeRunning()