diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-07-10 18:24:32 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-07-10 18:24:32 +0530 |
commit | 6f985b10f71ace2303b669d4e2a1165ff3a29eda (patch) | |
tree | 7d276fe0c8afc26d6cdad2d22ded748d2b551d43 /src/fields/util.ts | |
parent | 07569b4901f6715ed970c3d96e36de7c30b323a6 (diff) |
added _chromeStatus to playground fields
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r-- | src/fields/util.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index 77855887e..ebfc3933a 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -81,12 +81,10 @@ const _setterImpl = action(function (target: any, prop: string | symbol | number } //if (typeof value === "object" && !(value instanceof ObjectField)) debugger; - // remove below lines to prevent saving changes to server 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) } }); } else { - console.log("not writing to server") DocServer.registerDocWithCachedUpdate(receiver, prop as string, curValue); } UndoManager.AddEvent({ |