From 18621131f9fc87e5b48158d490e0de1e22d550f4 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Fri, 22 Nov 2024 07:00:21 -0500 Subject: [PATCH] Leave an idea for an optimization --- arches_lingo/src/arches_lingo/App.vue | 2 +- .../src/arches_lingo/components/tree/HierarchySplitter.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arches_lingo/src/arches_lingo/App.vue b/arches_lingo/src/arches_lingo/App.vue index 3bfaf655..bdb8673b 100644 --- a/arches_lingo/src/arches_lingo/App.vue +++ b/arches_lingo/src/arches_lingo/App.vue @@ -76,7 +76,7 @@ router.beforeEach(async (to, _from, next) => {
- +
diff --git a/arches_lingo/src/arches_lingo/components/tree/HierarchySplitter.vue b/arches_lingo/src/arches_lingo/components/tree/HierarchySplitter.vue index 63e2bf9f..36586c5d 100644 --- a/arches_lingo/src/arches_lingo/components/tree/HierarchySplitter.vue +++ b/arches_lingo/src/arches_lingo/components/tree/HierarchySplitter.vue @@ -36,6 +36,7 @@ const setDisplayedRow = (val: Concept | Scheme | null) => { if (val === null) { return; } + // TODO: Consider adding some sort of short-circuiting of fetchUser if (dataIsScheme(val)) { router.push({ name: routeNames.scheme, params: { id: val.id } }); } else if (dataIsConcept(val)) {