From 4e254928febe99b565a7e9fe982ab7c7cc285147 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 9 Mar 2022 00:12:27 -0600 Subject: [PATCH] EditProfile: convert to Map before mutations --- app/soapbox/features/edit_profile/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/edit_profile/index.js b/app/soapbox/features/edit_profile/index.js index 300d965a7..6fb9a0320 100644 --- a/app/soapbox/features/edit_profile/index.js +++ b/app/soapbox/features/edit_profile/index.js @@ -116,7 +116,7 @@ class EditProfile extends ImmutablePureComponent { const birthday = account.get('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.delete('source'); map.set('fields', normalizeFields(map.get('fields'), Math.min(maxFields, 4)));