Bladeren bron

fix: input vars not auto rename in list operator (#9550)

tags/0.10.0
Joel 1 jaar geleden
bovenliggende
commit
65e22bb76a
No account linked to committer's email address

+ 11
- 0
web/app/components/workflow/nodes/_base/components/variable/utils.ts Bestand weergeven

res = [(data as IterationNodeType).iterator_selector] res = [(data as IterationNodeType).iterator_selector]
break break
} }

case BlockEnum.ListFilter: {
res = [(data as ListFilterNodeType).variable]
break
}
} }
return res || [] return res || []
} }


break break
} }
case BlockEnum.ListFilter: {
const payload = data as ListFilterNodeType
if (payload.variable.join('.') === oldVarSelector.join('.'))
payload.variable = newVarSelector
break
}
} }
}) })
return newNode return newNode

+ 1
- 1
web/app/components/workflow/nodes/list-operator/use-config.ts Bestand weergeven

const itemVarTypeShowName = useMemo(() => { const itemVarTypeShowName = useMemo(() => {
if (!inputs.variable) if (!inputs.variable)
return '?' return '?'
return [itemVarType.substring(0, 1).toUpperCase(), itemVarType.substring(1)].join('')
return [(itemVarType || VarType.string).substring(0, 1).toUpperCase(), (itemVarType || VarType.string).substring(1)].join('')
}, [inputs.variable, itemVarType]) }, [inputs.variable, itemVarType])


const hasSubVariable = [VarType.arrayFile].includes(varType) const hasSubVariable = [VarType.arrayFile].includes(varType)

Laden…
Annuleren
Opslaan