From e6cff0f83fda7be27202e5d39086f452be1abd4d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 28 May 2020 15:29:32 -0500 Subject: [PATCH] EditProfile: Fix error about uncontrolled components --- app/gabsocial/features/edit_profile/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/gabsocial/features/edit_profile/index.js b/app/gabsocial/features/edit_profile/index.js index eea420962..d990abbb4 100644 --- a/app/gabsocial/features/edit_profile/index.js +++ b/app/gabsocial/features/edit_profile/index.js @@ -36,7 +36,7 @@ const mapStateToProps = state => { // Forces fields to be MAX_SIZE, filling empty values const normalizeFields = fields => ( ImmutableList(fields).setSize(MAX_FIELDS).map(field => - field ? field : ImmutableMap({ name: undefined, value: undefined }) + field ? field : ImmutableMap({ name: '', value: '' }) ) );