diff options
author | bobzel <zzzman@gmail.com> | 2024-03-13 10:25:55 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-13 10:25:55 -0400 |
commit | 1026f7079f14d4755d7aa0118bb83591ea719d83 (patch) | |
tree | f4c11471ae45c149dcbce6fece719d786240a367 | |
parent | 836703c11b6e327286ef6611af35759b8c76695e (diff) |
fixed getAllDirectLinks to access DocData instead of the passed Doc.
-rw-r--r-- | src/client/util/LinkManager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts index dd3b9bd07..0c8d18a7a 100644 --- a/src/client/util/LinkManager.ts +++ b/src/client/util/LinkManager.ts @@ -162,7 +162,7 @@ export class LinkManager { return this.relatedLinker(anchor); } // finds all links that contain the given anchor public getAllDirectLinks(anchor?: Doc): Doc[] { - return anchor ? Array.from(anchor[DirectLinks]) : []; + return anchor ? Array.from(anchor[DocData][DirectLinks]) : []; } // finds all links that contain the given anchor relatedLinker = computedFn(function relatedLinker(this: any, anchor: Doc): Doc[] { |