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