From 477e16bce94bcfb52b0ffeddb1ab56cb174167c5 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 4 Aug 2020 12:56:04 -0400 Subject: important server change that fixes promises not being fulfillled when documents already existed. --- src/client/DocServer.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } } }); -- cgit v1.2.3-70-g09d2