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

Handle undefined values in state #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JaydeeSaleCBOS
Copy link

handling of undefined values in state, so if the form doesn't exist it would create it and add it to store rather than fail over.

i.e
state = {
sampleForm: undefined
}

usage:
...mapFields(['sampleForm.name'])

this would fail, now succeeds and creates the name prop with undefined rather than failing

handling of undefined values in state, so if the form doesn't exist it would create it and add it to store rather than fail over.

i.e
state = {
sampleForm: undefined
}

usage: 
...mapFields(['sampleForm.name'])

this would fail, now succeeds and creates the name prop with undefined rather than failing
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.5%) to 98.529% when pulling 7b00afa on JaydeeSaleCBOS:master into ae30a03 on maoberlehner:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants