diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js index fcc7b4ef9e..c0d75c545d 100644 --- a/src/components/timeline_menu/timeline_menu.js +++ b/src/components/timeline_menu/timeline_menu.js @@ -26,7 +26,7 @@ const TimelineMenu = { if (this.currentUser && this.currentUser.locked) { this.$store.dispatch('startFetchingFollowRequests') } - if (timelineNames().includes(this.$route.name)) { + if (timelineNames()[this.$route.name]) { this.$store.dispatch('setLastTimeline', this.$route.name) } },