Преглед изворни кода

refactor & perf: declare const object outside component `VarReferencePicker` (#17496)

tags/1.2.0
yusheng chen пре 6 месеци
родитељ
комит
e3dc9f3c31
No account linked to committer's email address

+ 3
- 1
web/app/components/workflow/nodes/_base/components/variable/var-reference-picker.tsx Прегледај датотеку

@@ -68,12 +68,14 @@ type Props = {
zIndex?: number
}

const DEFAULT_VALUE_SELECTOR: Props['value'] = []

const VarReferencePicker: FC<Props> = ({
nodeId,
readonly,
className,
isShowNodeName = true,
value = [],
value = DEFAULT_VALUE_SELECTOR,
onOpen = noop,
onChange,
isSupportConstantValue,

Loading…
Откажи
Сачувај