Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(readField): Generate correct prefix when reading inside array fields, fixes #1090 #1091

Merged
merged 1 commit into from
Jun 3, 2016

Conversation

jayphelps
Copy link
Contributor

@jayphelps jayphelps commented Jun 2, 2016

fixes #1090

The issue was that the prefix passed to readField wasn't being generated like it is for object fields. e.g. incorrect: proposals[0].meta.items[]. correct: proposals[].meta.items[].

That is, pathToHere may actually contain indices for deeply nested stuff so you cannot use it.

@codecov-io
Copy link

codecov-io commented Jun 2, 2016

Current coverage is 97.28%

Merging #1091 into master will increase coverage by <.01%

@@             master      #1091   diff @@
==========================================
  Files            72         72          
  Lines          4081       4085     +4   
  Methods         757        757          
  Messages          0          0          
  Branches        312        312          
==========================================
+ Hits           3970       3974     +4   
  Misses          111        111          
  Partials          0          0          

Powered by Codecov. Last updated by 309b50c...71a3786

@ooflorent
Copy link
Contributor

LGTM

@erikras erikras merged commit 3cee1c7 into redux-form:master Jun 3, 2016
@erikras
Copy link
Member

erikras commented Jun 29, 2016

Published in v5.3.0.

@lock
Copy link

lock bot commented Jun 2, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v5] addField on nested fields doesn't work at leaf of first[].second.third[]
4 participants