|
|
@ -47,7 +47,7 @@ const MdwMessage = () => { |
|
|
|
if (form.getFieldValue('id') === 0) { |
|
|
|
setTemplateField(['name']); |
|
|
|
} else { |
|
|
|
setTemplateField(currentTemplate.fields.split(",")); |
|
|
|
setTemplateField(currentTemplate?.fields.split(",")); |
|
|
|
} |
|
|
|
}, [open]); |
|
|
|
|
|
|
@ -74,7 +74,6 @@ const MdwMessage = () => { |
|
|
|
}; |
|
|
|
|
|
|
|
const typeHandlerChange = (value) => { |
|
|
|
console.log(value) |
|
|
|
setTemplateType(value) |
|
|
|
} |
|
|
|
|
|
|
|