fix: in tool and http node of iteration can not show item var correctly (#4791)
This commit is contained in:
parent
3b60b712ec
commit
3175a2c76a
3 changed files with 7 additions and 7 deletions
|
|
@ -37,7 +37,7 @@ const InputVarList: FC<Props> = ({
|
|||
}) => {
|
||||
const language = useLanguage()
|
||||
const { t } = useTranslation()
|
||||
const { availableVars, availableNodes } = useAvailableVarList(nodeId, {
|
||||
const { availableVars, availableNodesWithParent } = useAvailableVarList(nodeId, {
|
||||
onlyLeafNodeVar: false,
|
||||
filterVar: (varPayload: Var) => {
|
||||
return [VarType.string, VarType.number].includes(varPayload.type)
|
||||
|
|
@ -139,7 +139,7 @@ const InputVarList: FC<Props> = ({
|
|||
onChange={handleMixedTypeChange(variable)}
|
||||
readOnly={readOnly}
|
||||
nodesOutputVars={availableVars}
|
||||
availableNodes={availableNodes}
|
||||
availableNodes={availableNodesWithParent}
|
||||
onFocusChange={handleInputFocus(variable)}
|
||||
placeholder={t('workflow.nodes.http.insertVarPlaceholder')!}
|
||||
placeholderClassName='!leading-[21px]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue