aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/HypothesisUtils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-12-12 14:39:09 -0500
committerbobzel <zzzman@gmail.com>2023-12-12 14:39:09 -0500
commit85c09a9e5df77ad00f3e00a2fb1e0f2e3449f97d (patch)
tree61aa82a95bdd923af1a48c6968aa8a6135f4cf85 /src/client/util/HypothesisUtils.ts
parent77234b8f1dd2cad90cdf94eaefab55de691305c3 (diff)
cleaned up SelectionManager. fixed schema view
Diffstat (limited to 'src/client/util/HypothesisUtils.ts')
-rw-r--r--src/client/util/HypothesisUtils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/HypothesisUtils.ts b/src/client/util/HypothesisUtils.ts
index 151f18d6f..990798ed3 100644
--- a/src/client/util/HypothesisUtils.ts
+++ b/src/client/util/HypothesisUtils.ts
@@ -27,7 +27,7 @@ export namespace Hypothesis {
* Search for a WebDocument whose url field matches the given uri, return undefined if not found
*/
export const findWebDoc = async (uri: string) => {
- const currentDoc = SelectionManager.Docs().lastElement();
+ const currentDoc = SelectionManager.Docs.lastElement();
if (currentDoc && Cast(currentDoc.data, WebField)?.url.href === uri) return currentDoc; // always check first whether the currently selected doc is the annotation's source, only use Search otherwise
const results: Doc[] = [];