fix: Fix sub graph code node step error

This commit is contained in:
zhsama
2026-02-10 19:45:46 +08:00
parent aba1752e6c
commit 8d0e646912

View File

@ -454,8 +454,11 @@ const useLastRun = <T>({
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()