You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within my store, I've defined my fields inside of an object: state: { application: [{ firstName: '', lastName: '', phoneNumbers: [{ type: '', number: '' ]} })
inside of my component I can use mapFields(['application.firstName',application.lastName']) and it will properly map. However, if I use mapMultiRowFields(['application.phoneNumbers']) I get several errors in my the console when loading the page (TypeError: cannot convert undefined or null to object), and the component creates the computed "phoneNumbers" but says "(error during evaluation)"
If I take my form fields out of the application object, and adjust my calls to mapFields and mapMultiRowFields appropriately, then it does build the computed values correctly.
Is this by design or is this a bug?
The text was updated successfully, but these errors were encountered:
Within my store, I've defined my fields inside of an object:
state: { application: [{ firstName: '', lastName: '', phoneNumbers: [{ type: '', number: '' ]} })
inside of my component I can use
mapFields(['application.firstName',application.lastName'])
and it will properly map. However, if I usemapMultiRowFields(['application.phoneNumbers'])
I get several errors in my the console when loading the page (TypeError: cannot convert undefined or null to object), and the component creates the computed "phoneNumbers" but says "(error during evaluation)"If I take my form fields out of the application object, and adjust my calls to mapFields and mapMultiRowFields appropriately, then it does build the computed values correctly.
Is this by design or is this a bug?
The text was updated successfully, but these errors were encountered: