mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
refactor & perf: declare const object outside component VarReferencePicker (#17496)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user