aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authorGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-08-12 14:52:37 +0800
committerGeireann Lindfield Roberts <60007097+geireann@users.noreply.github.com>2020-08-12 14:52:37 +0800
commit998e549f6a713c92c66218322c53f2fba8d94706 (patch)
tree7c4cd3af8637110e3524b0a09e96106009c3bbf9 /src/client/DocServer.ts
parentbdce823ca6839fa7de4b927de484417bb596bba0 (diff)
parent8fd9d9348de59caccfac9e98102fea431ac46999 (diff)
Merge branch 'master' into presentation_updates
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r--src/client/DocServer.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts
index 2fe3e9778..a36dfaf69 100644
--- a/src/client/DocServer.ts
+++ b/src/client/DocServer.ts
@@ -372,6 +372,9 @@ export namespace DocServer {
} else if (cached instanceof Promise) {
proms.push(cached as any);
}
+ } else if (_cache[field.id] instanceof Promise) {
+ proms.push(_cache[field.id] as any);
+ (_cache[field.id] as any).then((f: any) => fieldMap[field.id] = f);
} else if (field) {
proms.push(_cache[field.id] as any);
fieldMap[field.id] = field;