Fix edit profile checkbox state, fixes #261 #284

timeline-tab-hover-styles
Alex Gleason 2020-08-10 16:17:39 -05:00
rodzic 1697731ad7
commit c9b925d252
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -114,7 +114,7 @@ class EditProfile extends ImmutablePureComponent {
let formData = new FormData();
for (let key in data) {
// Compact the submission. This should probably be done better.
const shouldAppend = Boolean(data[key] || key.startsWith('fields_attributes'));
const shouldAppend = Boolean(data[key] !== undefined || key.startsWith('fields_attributes'));
if (shouldAppend) formData.append(key, data[key] || '');
}
return formData;