From 07d6b85b12aa836f0a9d0e7c2ac848009f92ac38 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Wed, 15 Feb 2017 17:04:27 +0100 Subject: [PATCH] Bugfix: Default percentage values should be set, not just displayed. --- frontend/src/component/feature/form/strategy-configure.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/feature/form/strategy-configure.jsx b/frontend/src/component/feature/form/strategy-configure.jsx index b481983774..e42f889a00 100644 --- a/frontend/src/component/feature/form/strategy-configure.jsx +++ b/frontend/src/component/feature/form/strategy-configure.jsx @@ -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 (