aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/util.ts
diff options
context:
space:
mode:
authorloudonclear <loudon_cohen@brown.edu>2019-06-14 14:36:41 -0400
committerloudonclear <loudon_cohen@brown.edu>2019-06-14 14:36:41 -0400
commit84ee857c73715c44258313b1481358db03a33b32 (patch)
tree29db2c072212092d37f350024b93c42b1ec5e7d8 /src/new_fields/util.ts
parent35786bfec967b2a9f1abc570bffe73530c053207 (diff)
parent618d3717e118f978de976cb34e8bc2051c726ffc (diff)
pull from master
Diffstat (limited to 'src/new_fields/util.ts')
-rw-r--r--src/new_fields/util.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/new_fields/util.ts b/src/new_fields/util.ts
index fe0da2e7a..8cb1db953 100644
--- a/src/new_fields/util.ts
+++ b/src/new_fields/util.ts
@@ -6,7 +6,7 @@ import { FieldValue } from "./Types";
import { RefField } from "./RefField";
import { ObjectField } from "./ObjectField";
import { action } from "mobx";
-import { Parent, OnUpdate, Update, Id } from "./FieldSymbols";
+import { Parent, OnUpdate, Update, Id, SelfProxy } from "./FieldSymbols";
import { ComputedField } from "../fields/ScriptField";
export const setter = action(function (target: any, prop: string | symbol | number, value: any, receiver: any): boolean {
@@ -86,7 +86,7 @@ export function deleteProperty(target: any, prop: string | number | symbol) {
delete target[prop];
return true;
}
- target[prop] = undefined;
+ target[SelfProxy][prop] = undefined;
return true;
}