Skip to content

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

@Jule-

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions