Преглед на файлове

refactor & perf: declare const object outside component `ConstantField` (#17495)

tags/1.2.0
yusheng chen преди 6 месеца
родител
ревизия
bf69b97639
No account linked to committer's email address
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3
    1
      web/app/components/workflow/nodes/_base/components/variable/constant-field.tsx

+ 3
- 1
web/app/components/workflow/nodes/_base/components/variable/constant-field.tsx Целия файл

onChange: (value: string | number, varKindType: VarKindType, varInfo?: Var) => void onChange: (value: string | number, varKindType: VarKindType, varInfo?: Var) => void
} }


const DEFAULT_SCHEMA = {} as CredentialFormSchema

const ConstantField: FC<Props> = ({ const ConstantField: FC<Props> = ({
schema = {} as CredentialFormSchema,
schema = DEFAULT_SCHEMA,
readonly, readonly,
value, value,
onChange, onChange,

Loading…
Отказ
Запис