diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-03-22 07:29:24 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-03-22 07:29:24 -0400 |
commit | 2086d916c7b4a6fd1795f1613c08fd4c45325c07 (patch) | |
tree | 463a08126822343c749504225578953990526144 | |
parent | 5b92729515e0fb4bbd951425ace945f45c4f93dd (diff) |
Fixed infinite recursion
-rw-r--r-- | src/fields/Document.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts index d098cc96d..c30e8f4db 100644 --- a/src/fields/Document.ts +++ b/src/fields/Document.ts @@ -131,7 +131,7 @@ export class Document extends Field { callback(field.field); } else if (this._proxies.has(key.Id)) { Server.GetDocumentField(this, key, callback); - } else { + } else if (this._proxies.has(KeyStore.Prototype.Id)) { this.GetTAsync(KeyStore.Prototype, Document, proto => { if (proto) { proto.GetAsync(key, callback); @@ -139,6 +139,8 @@ export class Document extends Field { callback(undefined); } }) + } else { + callback(undefined); } } |