mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 11:38:59 +08:00
refactor & perf: declare const object outside component ConstantField
(#17495)
This commit is contained in:
parent
6d59b8d85b
commit
bf69b97639
@ -15,8 +15,10 @@ type Props = {
|
||||
onChange: (value: string | number, varKindType: VarKindType, varInfo?: Var) => void
|
||||
}
|
||||
|
||||
const DEFAULT_SCHEMA = {} as CredentialFormSchema
|
||||
|
||||
const ConstantField: FC<Props> = ({
|
||||
schema = {} as CredentialFormSchema,
|
||||
schema = DEFAULT_SCHEMA,
|
||||
readonly,
|
||||
value,
|
||||
onChange,
|
||||
|
Loading…
x
Reference in New Issue
Block a user