diff --git a/frontend/src/component/feature/form/strategies-add.jsx b/frontend/src/component/feature/form/strategies-add.jsx index 7d3a1bef6b..0b2dc3c8c1 100644 --- a/frontend/src/component/feature/form/strategies-add.jsx +++ b/frontend/src/component/feature/form/strategies-add.jsx @@ -37,9 +37,8 @@ class AddStrategy extends React.Component { }; return (
- - this.setSort(e.target.getAttribute('data-target'))}> + + Add Strategy: {this.props.strategies.map((s) => this.addStrategy(s.name)}>{s.name})} diff --git a/frontend/src/component/feature/form/strategy-configure.jsx b/frontend/src/component/feature/form/strategy-configure.jsx index 0f01ce4e5e..2d2ae63313 100644 --- a/frontend/src/component/feature/form/strategy-configure.jsx +++ b/frontend/src/component/feature/form/strategy-configure.jsx @@ -42,10 +42,15 @@ class StrategyConfigure extends React.Component { } return keys.map(field => { if (strategyDefinition.parametersTemplate[field] === 'percentage') { + let value = this.props.strategy.parameters[field]; + if (value == null || (typeof value === 'string' && value === '')) { + value = 50; // default value + } return (); + value={1 * value} />); } else { return ( (
- +
{field}: {value}%
);