aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-10 14:09:31 -0400
committerbobzel <zzzman@gmail.com>2020-08-10 14:09:31 -0400
commitb695bd0ced4fc93fd77b3be2cb9ebf55a1287db4 (patch)
treea69049c8f7e7a0be5420dc9e3d42eda2e35deeff /src
parentf557c78db9a77812ab398aaff08d9511c1c65fc9 (diff)
fixed general list problem where items weren't being converted to Documents. Symptom was Shared Docs panel was missing a document after making and deleting an alias of a shared document.
Diffstat (limited to 'src')
-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;