From 64ffe5394928240ec6c7e24aaf2a383552d29935 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sat, 17 Dec 2016 11:43:40 +0100 Subject: [PATCH] bugfix input list --- .../src/component/feature/form/strategy-input-list.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/feature/form/strategy-input-list.jsx b/frontend/src/component/feature/form/strategy-input-list.jsx index aa63e09361..b2a4301c6a 100644 --- a/frontend/src/component/feature/form/strategy-input-list.jsx +++ b/frontend/src/component/feature/form/strategy-input-list.jsx @@ -8,7 +8,7 @@ import { export default class InputList extends Component { static propTypes = { - field: PropTypes.string.isRequired, + name: PropTypes.string.isRequired, list: PropTypes.array.isRequired, setConfig: PropTypes.func.isRequired, } @@ -38,12 +38,12 @@ export default class InputList extends Component { e.stopPropagation(); } - const { field, list, setConfig } = this.props; - const inputValue = document.querySelector(`[name="${field}_input"]`); + const { name, list, setConfig } = this.props; + const inputValue = document.querySelector(`[name="${name}_input"]`); if (inputValue && inputValue.value) { list.push(inputValue.value); inputValue.value = ''; - setConfig(field, list.join(',')); + setConfig(name, list.join(',')); } }