Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 back navigating in version steps and sidebar metadata pages #24

Open
wants to merge 8 commits into
base: staging
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
style: 🎨 format
  • Loading branch information
Aydawka committed Nov 16, 2023
commit d7d8f07bab6a8de3ab147d616c46b51afaa8ee02
2 changes: 1 addition & 1 deletion src/components/sidebar/AppSidebar.vue
Original file line number Diff line number Diff line change
@@ -390,7 +390,7 @@ const selectAndExpand = (key: string) => {
menuInstRef.value?.showOption(key);
};

router.beforeEach((to, from) => {
router.beforeEach((to) => {
if (typeof to.name !== "string") return;
const name: string = to.meta && to.meta.menuItem ? (to.meta.menuItem as string) : to.name;
selectAndExpand(name);
2 changes: 1 addition & 1 deletion src/components/sidebar/DatasetSidebar.vue
Original file line number Diff line number Diff line change
@@ -206,7 +206,7 @@ const selectAndExpand = (key: string) => {
menuInstRef.value?.showOption(key);
};

router.beforeEach((to, from) => {
router.beforeEach((to) => {
if (typeof to.name !== "string") return;
const name: string = to.meta && to.meta.menuItem ? (to.meta.menuItem as string) : to.name;
selectAndExpand(name);