aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-08-10 18:22:58 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-08-10 18:22:58 -0500
commit1e977ffd6b392982adb7623ee11389cb1d8974d6 (patch)
treeed446030e022871f9dc67be1ddcd3c255437c646 /src/client/DocServer.ts
parent9f08e3ce5e9073ade4b781181368d9417008b87f (diff)
parent8001f8aa447729d667f8e903f9d3dc7766ef3320 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into menu_restructure
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;