diff --git a/web/app/components/workflow/nodes/http/components/api-input.tsx b/web/app/components/workflow/nodes/http/components/api-input.tsx index 6c588cc3aa..c84556d92b 100644 --- a/web/app/components/workflow/nodes/http/components/api-input.tsx +++ b/web/app/components/workflow/nodes/http/components/api-input.tsx @@ -39,7 +39,7 @@ const ApiInput: FC = ({ const { t } = useTranslation() const [isFocus, setIsFocus] = useState(false) - const { availableVars, availableNodes } = useAvailableVarList(nodeId, { + const { availableVars, availableNodesWithParent } = useAvailableVarList(nodeId, { onlyLeafNodeVar: false, filterVar: (varPayload: Var) => { return [VarType.string, VarType.number].includes(varPayload.type) @@ -70,7 +70,7 @@ const ApiInput: FC = ({ onChange={onUrlChange} readOnly={readonly} nodesOutputVars={availableVars} - availableNodes={availableNodes} + availableNodes={availableNodesWithParent} onFocusChange={setIsFocus} placeholder={!readonly ? t('workflow.nodes.http.apiPlaceholder')! : ''} placeholderClassName='!leading-[21px]' diff --git a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx index 7020723ae9..40140db191 100644 --- a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx +++ b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx @@ -36,7 +36,7 @@ const InputItem: FC = ({ const hasValue = !!value const [isFocus, setIsFocus] = useState(false) - const { availableVars, availableNodes } = useAvailableVarList(nodeId, { + const { availableVars, availableNodesWithParent } = useAvailableVarList(nodeId, { onlyLeafNodeVar: false, filterVar: (varPayload: Var) => { return [VarType.string, VarType.number].includes(varPayload.type) @@ -59,7 +59,7 @@ const InputItem: FC = ({ onChange={onChange} readOnly={readOnly} nodesOutputVars={availableVars} - availableNodes={availableNodes} + availableNodes={availableNodesWithParent} onFocusChange={setIsFocus} placeholder={t('workflow.nodes.http.insertVarPlaceholder')!} placeholderClassName='!leading-[21px]' @@ -78,7 +78,7 @@ const InputItem: FC = ({ onChange={onChange} readOnly={readOnly} nodesOutputVars={availableVars} - availableNodes={availableNodes} + availableNodes={availableNodesWithParent} onFocusChange={setIsFocus} placeholder={t('workflow.nodes.http.insertVarPlaceholder')!} placeholderClassName='!leading-[21px]' diff --git a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx b/web/app/components/workflow/nodes/tool/components/input-var-list.tsx index a4faf7d081..f992ce7906 100644 --- a/web/app/components/workflow/nodes/tool/components/input-var-list.tsx +++ b/web/app/components/workflow/nodes/tool/components/input-var-list.tsx @@ -37,7 +37,7 @@ const InputVarList: FC = ({ }) => { 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 = ({ onChange={handleMixedTypeChange(variable)} readOnly={readOnly} nodesOutputVars={availableVars} - availableNodes={availableNodes} + availableNodes={availableNodesWithParent} onFocusChange={handleInputFocus(variable)} placeholder={t('workflow.nodes.http.insertVarPlaceholder')!} placeholderClassName='!leading-[21px]'