mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: only fetch types once
This commit is contained in:
		
							parent
							
								
									6395568d55
								
							
						
					
					
						commit
						18a53c4c77
					
				| @ -4,7 +4,8 @@ import MySelect from '../../common/select'; | ||||
| 
 | ||||
| class FeatureTypeSelectComponent extends Component { | ||||
|     componentDidMount() { | ||||
|         if (this.props.fetchFeatureTypes) { | ||||
|         const { fetchFeatureTypes, types } = this.props; | ||||
|         if (types[0].inital && fetchFeatureTypes) { | ||||
|             this.props.fetchFeatureTypes(); | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user