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(',')); } }