Skip to content

Error with optional and compose models. Cannot read property 'find' of undefined #922

@jchamb

Description

@jchamb

I have:

  • I think something is not working as it should.
    • I've checked documentation and searched for existing issues
    • I've made sure your project is based on the latest MST version

Updating my code to v3.0 ran into an issue after removing types.optional around my array types. I get the above error anytime I use a composed model. Reproduction of the issue below

https://codesandbox.io/s/71kz23n6pj

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions