mirror of
https://github.com/strapi/strapi.git
synced 2025-09-09 16:47:06 +00:00
commit
321ceede80
@ -255,6 +255,7 @@ const reducer = (state = initialState, action) => {
|
|||||||
allowedTypes: ['images', 'files', 'videos'],
|
allowedTypes: ['images', 'files', 'videos'],
|
||||||
type: 'media',
|
type: 'media',
|
||||||
multiple: true,
|
multiple: true,
|
||||||
|
...options,
|
||||||
};
|
};
|
||||||
} else if (attributeType === 'enumeration') {
|
} else if (attributeType === 'enumeration') {
|
||||||
dataToSet = { ...options, type: 'enumeration', enum: [] };
|
dataToSet = { ...options, type: 'enumeration', enum: [] };
|
||||||
|
@ -36,10 +36,9 @@ const extendCTBAttributeInitialDataMiddleware = () => {
|
|||||||
if (
|
if (
|
||||||
action.type === 'ContentTypeBuilder/FormModal/SET_ATTRIBUTE_DATA_SCHEMA' &&
|
action.type === 'ContentTypeBuilder/FormModal/SET_ATTRIBUTE_DATA_SCHEMA' &&
|
||||||
action.forTarget === 'contentType' &&
|
action.forTarget === 'contentType' &&
|
||||||
!['relation', 'media', 'component'].includes(action.attributeType) &&
|
!['relation', 'component'].includes(action.attributeType) &&
|
||||||
!action.isEditing
|
!action.isEditing
|
||||||
) {
|
) {
|
||||||
// We need to make sure the plugin is installed
|
|
||||||
return enhanceAction();
|
return enhanceAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user