mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 04:03:25 +00:00
Merge pull request #13822 from strapi/fix/cm-dynamiczone-label-description
CM: Fix edit form for dynamiczones (allow label + description)
This commit is contained in:
commit
8d5ec5dfdc
@ -59,8 +59,8 @@ const ModalForm = ({ onMetaChange, onSizeChange }) => {
|
||||
const formType = get(attributes, [selectedField, 'type']);
|
||||
|
||||
if (
|
||||
formType === 'dynamiczone' ||
|
||||
(formType === 'component' && !['label', 'description'].includes(meta))
|
||||
['component', 'dynamiczone'].includes(formType) &&
|
||||
!['label', 'description'].includes(meta)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user