aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Document.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-06 03:51:47 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-06 03:51:47 -0400
commitef4509360d2056cb06ea512ef0059220bfdfcdcd (patch)
treee9b55d95290a54ade97fef75513125c6287d34e2 /src/fields/Document.ts
parent8c920d6362b3473319d18bfb2dd5decf664af277 (diff)
Small changes
Diffstat (limited to 'src/fields/Document.ts')
-rw-r--r--src/fields/Document.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts
index e4d35e860..538d4ada9 100644
--- a/src/fields/Document.ts
+++ b/src/fields/Document.ts
@@ -323,7 +323,7 @@ export class Document extends Field {
@action
SetDataOnPrototype<T, U extends Field & { Data: T }>(key: Key, value: T, ctor: { new(): U }, replaceWrongType = true) {
this.GetTAsync(KeyStore.Prototype, Document, (f: Opt<Document>) => {
- f && f.SetData(key, value, ctor);
+ f && f.SetData(key, value, ctor, replaceWrongType);
});
}