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