Permalink
Browse files

fix(EntityProxy): cast undefined to null for actual undefined checks

  • Loading branch information...
RWOverdijk committed Jul 29, 2017
1 parent f94ddb3 commit 9a7764a55f47f9f95acd5e099a971b75475a0041
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/EntityProxy.ts
@@ -193,6 +193,10 @@ export class EntityProxy {
// Return the actual proxy for the entity.
entityProxy = new Proxy<T & ProxyInterface>(entity, <Object> {
set: (target: Object, property: string, value: any) => {
if (typeof value === 'undefined') {
value = null;
}
// Allow all dirty checks to be skipped.
if (setDirty(target, property, value)) {
return true;

0 comments on commit 9a7764a

Please sign in to comment.