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

pull/17515/head
yusheng chen 1 year ago committed by GitHub
parent 42a42a7962
commit e3dc9f3c31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save