-
Notifications
You must be signed in to change notification settings - Fork 82
Description
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?