aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-04 12:56:04 -0400
committerbobzel <zzzman@gmail.com>2020-08-04 12:56:04 -0400
commit477e16bce94bcfb52b0ffeddb1ab56cb174167c5 (patch)
tree50f4541e051b8eeae4db7cb9c4cc16ab8e9b9b40 /src
parentd4c41208367775ccfb530418137a4de7c8d62472 (diff)
important server change that fixes promises not being fulfillled when documents already existed.
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 6fa8cf909..2fe3e9778 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 (field) {
+ proms.push(_cache[field.id] as any);
+ fieldMap[field.id] = field;
}
}
});