Redux-form: Forms with no inputs produce error V6 (alpha 15)

Created on 9 Jun 2016  路  3Comments  路  Source: redux-form/redux-form

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?

bug

Most helpful comment

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

All 3 comments

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

Published in v6.0.0-rc.1.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rob-mcgrail picture rob-mcgrail  路  3Comments

wtfil picture wtfil  路  3Comments

Aaronius picture Aaronius  路  3Comments

chienvuhoang picture chienvuhoang  路  3Comments

anyong picture anyong  路  3Comments