aboutsummaryrefslogtreecommitdiff
path: root/src/fields/util.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-06-30 16:13:58 -0400
committerGitHub <noreply@github.com>2020-06-30 16:13:58 -0400
commitd9f849a8e227cca897ee0a50746e08bb513f2b94 (patch)
tree4c4d0997b2d91d570454c889b43b206c34aa4e59 /src/fields/util.ts
parent45d4390a70f0a1199718f006cdbaef3029c19443 (diff)
parent8c01af79d62b94488dcef2964e89ee6a943c5663 (diff)
Merge pull request #427 from browngraphicslab/anika_schema_view
Schema view modifications
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r--src/fields/util.ts2
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) } });