diff options
-rw-r--r-- | src/client/util/LinkManager.ts | 7 |
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) { |