diff options
author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-29 11:26:52 -0500 |
---|---|---|
committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-29 11:26:52 -0500 |
commit | e28fc1fcb0f23d47dfc23dd9e58090b28201289c (patch) | |
tree | fd3888086172f9a60e1985d286c8c3240d6f761a /src/fields | |
parent | d6828dba3dc1fd809d0e1449e8230656bb7c5360 (diff) |
fixed date type
Diffstat (limited to 'src/fields')
-rw-r--r-- | src/fields/util.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index 2869ebed1..2dc21c987 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -78,7 +78,7 @@ const _setterImpl = action(function (target: any, prop: string | symbol | number } else { target.__fields[prop] = value; } - if (typeof value === "object" && !(value instanceof ObjectField)) debugger; + //if (typeof value === "object" && !(value instanceof ObjectField)) debugger; if (writeToServer) { if (value === undefined) target[Update]({ '$unset': { ["fields." + prop]: "" } }); else target[Update]({ '$set': { ["fields." + prop]: value instanceof ObjectField ? SerializationHelper.Serialize(value) : (value === undefined ? null : value) } }); |