diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-26 08:25:23 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-26 11:45:05 +0900 |
commit | 256e7372d4a96079b993115eabde8b33d400c7c8 (patch) | |
tree | 7644dc397cde50d59fefb139bac8110ed16b3ad0 /src/settings/components/form | |
parent | 2c46e9d448142c84b802ef8e0e1af53524dc4759 (diff) |
settings migration between json and form
Diffstat (limited to 'src/settings/components/form')
-rw-r--r-- | src/settings/components/form/blacklist-form.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/components/form/blacklist-form.jsx b/src/settings/components/form/blacklist-form.jsx index 9cb547b..4333929 100644 --- a/src/settings/components/form/blacklist-form.jsx +++ b/src/settings/components/form/blacklist-form.jsx @@ -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; |