mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Bugfix: Default percentage values should be set, not just displayed.
This commit is contained in:
		
							parent
							
								
									8f605649bb
								
							
						
					
					
						commit
						07d6b85b12
					
				@ -84,7 +84,7 @@ class StrategyConfigure extends React.Component {
 | 
				
			|||||||
                let value = this.props.strategy.parameters[name];
 | 
					                let value = this.props.strategy.parameters[name];
 | 
				
			||||||
                if (type === 'percentage') {
 | 
					                if (type === 'percentage') {
 | 
				
			||||||
                    if (value == null || (typeof value === 'string' && value === '')) {
 | 
					                    if (value == null || (typeof value === 'string' && value === '')) {
 | 
				
			||||||
                        value = 50; // default value
 | 
					                        this.setConfig(name, 50);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    return (
 | 
					                    return (
 | 
				
			||||||
                        <div key={name}>
 | 
					                        <div key={name}>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user