Skip to content

Commit

Permalink
lint-test
Browse files Browse the repository at this point in the history
  • Loading branch information
RONAK-AI647 committed Dec 1, 2024
1 parent bc386c2 commit ac409f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/common/DocsPageTemplate/SideNav/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import throttle from 'lodash/throttle';
import NavSectionList from './NavSectionList';
import { termList, matches } from '~/common/DocsFilter/utils';
import tableOfContents from '~/tableOfContents.js'
import tableOfContents from '~/tableOfContents.js';
export default {
name: 'SideNav',
Expand Down Expand Up @@ -79,12 +79,12 @@
if (window) {
window.sessionStorage.setItem('nav-filter', newValue);
//Clear the filter query when filtertext is empty
if (!newValue) {
if (!newValue) {
this.$router.replace({ path: this.$route.path, query: {} });
} else {
} else {
//else ,update the filter query param
this.$router.push({ path: this.$route.path, query: { ...this.$route.query, filter: newValue}});
}
}
}
},
},
Expand All @@ -105,7 +105,7 @@
}
});
}
// don't show the nav until the state is set
// don't show the nav until the state is set
this.loaded = true;
},
methods: {
Expand Down

0 comments on commit ac409f6

Please sign in to comment.