mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 04:35:56 +08:00
refactor & perf: declare const object outside component VarReferencePicker
(#17496)
This commit is contained in:
parent
42a42a7962
commit
e3dc9f3c31
@ -68,12 +68,14 @@ type Props = {
|
|||||||
zIndex?: number
|
zIndex?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const DEFAULT_VALUE_SELECTOR: Props['value'] = []
|
||||||
|
|
||||||
const VarReferencePicker: FC<Props> = ({
|
const VarReferencePicker: FC<Props> = ({
|
||||||
nodeId,
|
nodeId,
|
||||||
readonly,
|
readonly,
|
||||||
className,
|
className,
|
||||||
isShowNodeName = true,
|
isShowNodeName = true,
|
||||||
value = [],
|
value = DEFAULT_VALUE_SELECTOR,
|
||||||
onOpen = noop,
|
onOpen = noop,
|
||||||
onChange,
|
onChange,
|
||||||
isSupportConstantValue,
|
isSupportConstantValue,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user