diff --git a/src/pages/identity/containers/Project/actions/Edit.jsx b/src/pages/identity/containers/Project/actions/Edit.jsx index c62b89d4..7ac72b9b 100644 --- a/src/pages/identity/containers/Project/actions/Edit.jsx +++ b/src/pages/identity/containers/Project/actions/Edit.jsx @@ -40,14 +40,11 @@ class EditForm extends ModalAction { get defaultValue() { const { name, description, enabled } = this.item; - if (name && this.formRef.current) { - this.formRef.current.setFieldsValue({ - name, - description, - enabled: statusTypes.filter((it) => it.value === enabled), - }); - } - return {}; + return { + name, + description, + enabled, + }; } checkName = (rule, value) => { @@ -84,7 +81,6 @@ class EditForm extends ModalAction { label: t('Status'), type: 'radio', optionType: 'default', - isWrappedValue: true, options: statusTypes, disabled: true, help: t(