From 2086d916c7b4a6fd1795f1613c08fd4c45325c07 Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Fri, 22 Mar 2019 07:29:24 -0400 Subject: Fixed infinite recursion --- src/fields/Document.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit v1.2.3-70-g09d2