Skip to content

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

@rsf123

Description

@rsf123

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions