SoapboxConfig: add default getValue

This commit is contained in:
Alex Gleason 2020-10-18 13:41:38 -05:00
parent faf64d9609
commit b997cde0d8
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -136,7 +136,7 @@ class SoapboxConfig extends ImmutablePureComponent {
};
};
handleItemChange = (path, key, field, template, getValue) => {
handleItemChange = (path, key, field, template, getValue = e => e.target.value) => {
return this.handleChange(
path, (e) =>
template
@ -151,9 +151,9 @@ class SoapboxConfig extends ImmutablePureComponent {
);
};
handleHomeFooterItemChange = (index, key, field) => {
handleHomeFooterItemChange = (index, key, field, getValue) => {
return this.handleItemChange(
['navlinks', 'homeFooter', index], key, field, templates.footerItem,
['navlinks', 'homeFooter', index], key, field, templates.footerItem, getValue,
);
};