aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Document.ts
diff options
context:
space:
mode:
authorMonika Hedman <monika_hedman@brown.edu>2019-04-30 16:36:39 -0400
committerMonika Hedman <monika_hedman@brown.edu>2019-04-30 16:36:39 -0400
commitbad0dedb8be3d62f7dbc72abbfe146e1873195cf (patch)
treea4e989b6d2df60124f0908910052b589b3895a4d /src/fields/Document.ts
parent77c575d5da1ecd9499dbc82c9686cf4cd87cf237 (diff)
parent86e89178628a27a91665ad835046e536bdb89729 (diff)
pulled
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 6f6533754..339f370cc 100644
--- a/src/fields/Document.ts
+++ b/src/fields/Document.ts
@@ -203,7 +203,7 @@ export class Document extends Field {
callback: (field: T) => void
): void {
//This currently doesn't deal with prototypes
- if (this._proxies.has(key.Id)) {
+ if (this._proxies.has(key.Id) || this.fields.has(key.Id)) {
Server.GetDocumentField(this, key, field => {
if (field && field instanceof ctor) {
callback(field);