diff --git a/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx b/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx index 97ab4c819a..02cf745ad7 100644 --- a/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx +++ b/web/app/components/workflow/nodes/_base/components/input-support-select-var.tsx @@ -11,6 +11,7 @@ import { Variable02 } from '@/app/components/base/icons/src/vender/solid/develop import TooltipPlus from '@/app/components/base/tooltip-plus' type Props = { + instanceId?: string className?: string placeholder?: string placeholderClassName?: string @@ -24,6 +25,7 @@ type Props = { } const Editor: FC = ({ + instanceId, className, placeholder, placeholderClassName, @@ -52,6 +54,7 @@ const Editor: FC = ({
<> = ({ const value = vars[index].split('.') const isSystem = isSystemVar(value) - const node = (isSystem ? startNode : getNodeInfoById(availableNodes, value[0])).data + const node = (isSystem ? startNode : getNodeInfoById(availableNodes, value[0]))?.data const varName = `${isSystem ? 'sys.' : ''}${value[value.length - 1]}` const type = (() => { let type = VarType.string - let curr: any = node.vars + let curr: any = node?.vars if (!curr) return type