{"action":"closed","issue":{"url":"https://api.github.com/repos/erikras/redux-form/issues/475","labels_url":"https://api.github.com/repos/erikras/redux-form/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/erikras/redux-form/issues/475/comments","events_url":"https://api.github.com/repos/erikras/redux-form/issues/475/events","html_url":"https://github.com/erikras/redux-form/issues/475","id":124082840,"number":475,"title":"reset form setting values nested in an array to undefined (v4.0.5)","user":{"login":"rhythnic","id":8162640,"avatar_url":"https://avatars.githubusercontent.com/u/8162640?v=3","gravatar_id":"","url":"https://api.github.com/users/rhythnic","html_url":"https://github.com/rhythnic","followers_url":"https://api.github.com/users/rhythnic/followers","following_url":"https://api.github.com/users/rhythnic/following{/other_user}","gists_url":"https://api.github.com/users/rhythnic/gists{/gist_id}","starred_url":"https://api.github.com/users/rhythnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhythnic/subscriptions","organizations_url":"https://api.github.com/users/rhythnic/orgs","repos_url":"https://api.github.com/users/rhythnic/repos","events_url":"https://api.github.com/users/rhythnic/events{/privacy}","received_events_url":"https://api.github.com/users/rhythnic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-28T15:46:05Z","updated_at":"2015-12-28T19:20:46Z","closed_at":"2015-12-28T19:20:46Z","body":"I have a form which contains the fields:\r\n```\r\n'group.members[].name',\r\n'group.members[].age'\r\n```\r\nI am setting initialValues, which is a deep JS object, through the mapStateToProps function\r\n```\r\n// initialValues\r\n{\r\n  group: {\r\n    members: [{name: 'Bob', age: 40}]\r\n  }\r\n}\r\n```\r\nThe form is properly initialized;\r\n```\r\n// this.props.fields\r\n{group:\r\n    members: [\r\n      {\r\n        name:  {defaultValue: 'Bob', initialValue: 'Bob', value: 'Bob'},\r\n        age:  {defaultValue: 40, initialValue: 40, value: 40}\r\n      }\r\n      ...\r\n   ]\r\n```\r\nhowever, after resetting the form, the values are set to undefined, instead of being set to the initialValue.\r\n```\r\n// this.props.fields\r\n{group:\r\n    members: [\r\n      {\r\n        name:  {defaultValue: 'Bob', initialValue: 'Bob', value: undefined},\r\n        age:  {defaultValue: 40, initialValue: 40, value: undefined}\r\n      }\r\n      ...\r\n   ]\r\n```"}}