settings migration between json and form

This commit is contained in:
Shin'ya Ueoka 2017-11-26 08:25:23 +09:00
parent 2c46e9d448
commit 256e7372d4
2 changed files with 22 additions and 3 deletions

View file

@ -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;