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

Forms with no inputs produce error V6 (alpha 15) #1124

Closed
jaraquistain opened this issue Jun 8, 2016 · 3 comments
Closed

Forms with no inputs produce error V6 (alpha 15) #1124

jaraquistain opened this issue Jun 8, 2016 · 3 comments
Labels
Milestone

Comments

@jaraquistain
Copy link

jaraquistain commented Jun 8, 2016

In some instances I'm using redux-form for forms that technically have no inputs, just a submit button. The reason for this is consistency in handling server-side errors.

I'm using alpha 15 and for my forms with no inputs I'm getting the following error:

reduxForm.js?c2ae:400 Uncaught TypeError: Cannot read property 'map' of undefined

specifically, this line:

this.props.registeredFields.map(function (field) {
  return getIn(field, 'name');
});

Is there any harm in just having an empty array be the default value for this.props.registeredFields?

@jaraquistain jaraquistain changed the title Forms with no inputs produce error Forms with no inputs produce error V6 (alpha 15) Jun 8, 2016
@ooflorent ooflorent added the bug label Jun 9, 2016
@ooflorent ooflorent added this to the next-6.0.0 milestone Jun 9, 2016
@erikras
Copy link
Member

erikras commented Jun 24, 2016

Fixed. I will comment again when the fix is published.

@erikras erikras closed this as completed Jun 24, 2016
@erikras
Copy link
Member

erikras commented Jul 1, 2016

Published in v6.0.0-rc.1.

@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
Projects
None yet
Development

No branches or pull requests

3 participants