aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-08-31 10:06:13 -0400
committerbobzel <zzzman@gmail.com>2021-08-31 10:06:13 -0400
commit81998d49bd1dda99020eca5e439c51cbf3f1d1cf (patch)
tree558e48994ee1259a120d492536e164adabd836ec
parentae15297a1e2314b640b700d088b7dc374c4b4460 (diff)
another test
-rw-r--r--src/client/util/LinkManager.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts
index d712b030a..64da68f59 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -128,10 +128,11 @@ export class LinkManager {
relatedLinker = computedFn(function relatedLinker(this: any, anchor: Doc): Doc[] {
const lfield = Doc.LayoutFieldKey(anchor);
- const dirLinks = Doc.GetProto(anchor)[DirectLinksSym];
- if (!anchor || anchor instanceof Promise || !dirLinks) {
- debugger;
+ if (!anchor || anchor instanceof Promise || Doc.GetProto(anchor) instanceof Promise) {
+ console.log("WAITING FOR DOC/PROTO IN LINKMANAGER");
+ return [];
}
+ const dirLinks = Doc.GetProto(anchor)[DirectLinksSym];
const annos = DocListCast(anchor[lfield + "-annotations"]);
const timelineAnnos = DocListCast(anchor[lfield + "-annotations-timeline"]);
if (!annos || !timelineAnnos) {