settings migration between json and form
This commit is contained in:
parent
2c46e9d448
commit
256e7372d4
2 changed files with 22 additions and 3 deletions
|
@ -34,7 +34,7 @@ class BlacklistForm extends Component {
|
|||
|
||||
let name = e.target.name;
|
||||
let index = e.target.getAttribute('data-index');
|
||||
let next = this.props.value.slice();
|
||||
let next = this.props.value ? this.props.value.slice() : [];
|
||||
|
||||
if (name === 'url') {
|
||||
next[index] = e.target.value;
|
||||
|
|
Reference in a new issue