Merge "fix: Fix 'enabled' when edit project"
This commit is contained in:
commit
323396b545
@ -40,14 +40,11 @@ class EditForm extends ModalAction {
|
|||||||
|
|
||||||
get defaultValue() {
|
get defaultValue() {
|
||||||
const { name, description, enabled } = this.item;
|
const { name, description, enabled } = this.item;
|
||||||
if (name && this.formRef.current) {
|
return {
|
||||||
this.formRef.current.setFieldsValue({
|
name,
|
||||||
name,
|
description,
|
||||||
description,
|
enabled,
|
||||||
enabled: statusTypes.filter((it) => it.value === enabled),
|
};
|
||||||
});
|
|
||||||
}
|
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
checkName = (rule, value) => {
|
checkName = (rule, value) => {
|
||||||
@ -84,7 +81,6 @@ class EditForm extends ModalAction {
|
|||||||
label: t('Status'),
|
label: t('Status'),
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
optionType: 'default',
|
optionType: 'default',
|
||||||
isWrappedValue: true,
|
|
||||||
options: statusTypes,
|
options: statusTypes,
|
||||||
disabled: true,
|
disabled: true,
|
||||||
help: t(
|
help: t(
|
||||||
|
Loading…
Reference in New Issue
Block a user