aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Proxy.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-11-10 11:18:46 -0500
committerbobzel <zzzman@gmail.com>2022-11-10 11:18:46 -0500
commitbbc993dd70d105c3de078208763e6415eedb1ff7 (patch)
treead901a08d9369dc5d6ca71cdf4edef48ee8b7894 /src/fields/Proxy.ts
parent51e8786c33a1af207081212802e6da03476edf4a (diff)
partial fix for previewing multiple links to different sidebar notes. fixed opening sidebar to create an annotation the first time. fixed honoring dashFieldView's non-editable flag. moved isLinkButton setter to expert and make isLinkButton default for Buttons. fixed following Links with Zoom to reset view. fixed view for editing onClick for documents
Diffstat (limited to 'src/fields/Proxy.ts')
-rw-r--r--src/fields/Proxy.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Proxy.ts b/src/fields/Proxy.ts
index e924ef7a3..72ae13035 100644
--- a/src/fields/Proxy.ts
+++ b/src/fields/Proxy.ts
@@ -66,7 +66,7 @@ export class ProxyField<T extends RefField> extends ObjectField {
const cached = DocServer.GetCachedRefField(this.fieldId) as T;
if (cached !== undefined) {
- this.cache = cached;
+ setTimeout(action(() => (this.cache = cached)));
} else if (!this.promise) {
this.promise = DocServer.GetRefField(this.fieldId).then(
action((field: any) => {