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:
Gustav Hansen 2022-07-25 16:07:14 +02:00 committed by GitHub
commit 8d5ec5dfdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}