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()