Skip to content

Sub-model references are not instantiated on first get. #14

Description

@Jule-

I'm submitting a bug report

  • Framework Version:
    v0.4.9

  • Language:
    ESNext

Current behavior:
When first get request is processed, models are not well processed and then referenced sub-models are not created.

Expected/desired behavior:
When requiring model for the first time we want sub-models to be well instantiated.


In fact issue seems to be somewhere related to the backendKey to frontendKey conversion.

let itemData = model[item.backendKey];

Indeed here we are trying to get in model the backendKey while inside it is already converted to frontendKey. As a result itemData is undefined and sub-models will not be instantiated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions