Skip to content

Commit

Permalink
Leave an idea for an optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Nov 22, 2024
1 parent d1107fb commit 1862113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arches_lingo/src/arches_lingo/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ router.beforeEach(async (to, _from, next) => {
<SideNav v-if="route.meta.shouldShowNavigation" />
<div style="flex: auto">
<HierarchySplitter v-if="route.meta.shouldShowHierarchy" />
<RouterView v-else></RouterView>
<RouterView v-else />
</div>
</div>
</main>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 1862113

Please sign in to comment.