Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eva-vashkevich committed Sep 27, 2024
1 parent 9a6d288 commit 945747d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions shell/components/nav/Type.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,16 @@ export default {
const typeFullPath = this.$router.resolve(this.type.route)?.fullPath.toLowerCase();
const pageFullPath = this.$route.fullPath?.toLowerCase();
if( !this.type.exact) {
if ( !this.type.exact) {
const typeSplit = typeFullPath.split('/');
const pageSplit = pageFullPath.split('/');
for (let index = 0; index < typeSplit.length; ++index) {
if( index >= pageSplit.length || typeSplit[index] !== pageSplit[index] ){
return false;
}
if ( index >= pageSplit.length || typeSplit[index] !== pageSplit[index] ) {
return false;
}
}
return true;
}
Expand Down

0 comments on commit 945747d

Please sign in to comment.