mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 03:43:34 +00:00 
			
		
		
		
	Fix input relation
This commit is contained in:
		
							parent
							
								
									d05f8146a5
								
							
						
					
					
						commit
						38fc1aade7
					
				@ -32,7 +32,7 @@ function EditRelations(props) {
 | 
				
			|||||||
      {map(filterRelationsUpload(props.schema.relations), (relation, key) => {
 | 
					      {map(filterRelationsUpload(props.schema.relations), (relation, key) => {
 | 
				
			||||||
        if (relation.nature.toLowerCase().includes('morph') && relation[key]) return '';
 | 
					        if (relation.nature.toLowerCase().includes('morph') && relation[key]) return '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const Select = ['oneWay', 'oneToOne', 'manyToOne', 'oneToManyMorph', 'oneToOneMorph'].includes(relation.nature) && relation.dominant ? SelectOne : SelectMany;
 | 
					        const Select = ['oneWay', 'oneToOne', 'manyToOne', 'oneToManyMorph', 'oneToOneMorph'].includes(relation.nature) ? SelectOne : SelectMany;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return (
 | 
					        return (
 | 
				
			||||||
          <Select
 | 
					          <Select
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user