aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-10 14:11:24 -0400
committerbobzel <zzzman@gmail.com>2020-08-10 14:11:24 -0400
commit8001f8aa447729d667f8e903f9d3dc7766ef3320 (patch)
treef91cb18dabc97c0a9fea7a4310022a4e89a3de70
parentbf11e55b42406405bac72a0e533b18d792640768 (diff)
fixed general list problem where elements weren't converted to Docs. Symptom was documents now showing up in Shared Docs panel after making and deleting an alias of a shared doc.
-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;