From 81998d49bd1dda99020eca5e439c51cbf3f1d1cf Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 31 Aug 2021 10:06:13 -0400 Subject: another test --- src/client/util/LinkManager.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2