fix: in tool and http node of iteration can not show item var correctly (#4791)

This commit is contained in:
Joel
2024-05-30 10:40:27 +08:00
committed by GitHub
parent 3b60b712ec
commit 3175a2c76a
3 changed files with 7 additions and 7 deletions

View File

@@ -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]'