aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-26 17:08:38 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-26 17:08:38 -0400
commitf01b842a5d6ef6b9deb9807fa0c3a8cd2c81a25a (patch)
treec9e3b3c18dc35f4a3fa3083b69b985821041c879 /src/new_fields/Doc.ts
parentc318c6cb44b26b780e94e0f0854e5ec4c14634a9 (diff)
TreeView and others
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 79e5a156d..a5f495477 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -91,7 +91,7 @@ export namespace Doc {
return Cast(Get(doc, key, ignoreProto), ctor) as T | null | undefined;
}
export async function SetOnPrototype(doc: Doc, key: string, value: Field) {
- const proto = await Cast(doc.proto, Doc);
+ const proto = doc.proto;
if (proto) {
proto[key] = value;
}