Skip to content

Commit 5091778

Browse files
committed
navbar tracks current route
1 parent 750bf84 commit 5091778

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/src/components/shared/NavBar.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ export default {
5656
return this.$store.getters.getLoggedInUser;
5757
},
5858
currentRoute() {
59-
console.log(this.$router.currentRoute);
60-
return this.$route.name;
59+
return this.$router.currentRoute.name;
6160
},
6261
},
6362
};

0 commit comments

Comments
 (0)