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

mapMultiRowFields doesn't appear to support dot notation? #146

Open
rsf123 opened this issue Jul 17, 2021 · 1 comment
Open

mapMultiRowFields doesn't appear to support dot notation? #146

rsf123 opened this issue Jul 17, 2021 · 1 comment

Comments

@rsf123
Copy link

rsf123 commented Jul 17, 2021

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?

@Sjos12
Copy link

Sjos12 commented Apr 25, 2024

Experiencing same limitation

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

No branches or pull requests

2 participants