Breeze / breeze-client

Breeze for JavaScript clients
MIT License
38 stars 16 forks source link

Question (maybe bug) on method getRawValueFromConfig #71

Open iz-iznogood opened 1 year ago

iz-iznogood commented 1 year ago

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]; }