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