SoapboxConfig: add default getValue

icon_picker_admin_config
Alex Gleason 2020-10-18 13:41:38 -05:00
rodzic faf64d9609
commit b997cde0d8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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