Skip to content

Question (maybe bug) on method getRawValueFromConfig #71

@iz-iznogood

Description

@iz-iznogood

Hello all,

I found an issue on getRawValueFromConfig where the rawEntity has an entityAspect but it was a raw object (serialized from breeze client).
Maybe the check rawEntity.entityAspect || rawEntity.complexAspect should be typeof (rawEntity.getProperty) === "function" ???

function getRawValueFromConfig(rawEntity, dp) {
// 'true' fork can happen if an initializer contains an actaul instance of an already created complex object.
return (rawEntity.entityAspect || rawEntity.complexAspect) ? rawEntity.getProperty(dp.name) : rawEntity[dp.name];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions