EditProfile: convert to Map before mutations
This commit is contained in:
parent
831741bea5
commit
4e254928fe
|
@ -116,7 +116,7 @@ class EditProfile extends ImmutablePureComponent {
|
||||||
const birthday = account.get('birthday');
|
const birthday = account.get('birthday');
|
||||||
const showBirthday = account.getIn(['source', 'pleroma', 'show_birthday']);
|
const showBirthday = account.getIn(['source', 'pleroma', 'show_birthday']);
|
||||||
|
|
||||||
const initialState = account.withMutations(map => {
|
const initialState = ImmutableMap(account).withMutations(map => {
|
||||||
map.merge(map.get('source'));
|
map.merge(map.get('source'));
|
||||||
map.delete('source');
|
map.delete('source');
|
||||||
map.set('fields', normalizeFields(map.get('fields'), Math.min(maxFields, 4)));
|
map.set('fields', normalizeFields(map.get('fields'), Math.min(maxFields, 4)));
|
||||||
|
|
Loading…
Reference in New Issue