EditProfile: Fix error about uncontrolled components
This commit is contained in:
parent
c4c99a1c1b
commit
e6cff0f83f
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ const mapStateToProps = state => {
|
||||||
// Forces fields to be MAX_SIZE, filling empty values
|
// Forces fields to be MAX_SIZE, filling empty values
|
||||||
const normalizeFields = fields => (
|
const normalizeFields = fields => (
|
||||||
ImmutableList(fields).setSize(MAX_FIELDS).map(field =>
|
ImmutableList(fields).setSize(MAX_FIELDS).map(field =>
|
||||||
field ? field : ImmutableMap({ name: undefined, value: undefined })
|
field ? field : ImmutableMap({ name: '', value: '' })
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue