From c43eaeec061132827185f0ee47c533605860f8ff Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 3 Apr 2024 15:48:49 +0800 Subject: [PATCH] fix: can not open --- .../nodes/_base/components/input-support-select-var.tsx | 3 +++ .../nodes/_base/components/readonly-input-with-select-var.tsx | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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