aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline_menu
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-28 09:41:00 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-28 09:41:00 +0300
commite57562959f5e71fd6e3bf180e2856d504ffb1fcf (patch)
tree022a8ffd537c91c8ba2b3dc5e8a913232e51fec9 /src/components/timeline_menu
parente86c5ea1fa7dcbae582707430a821d2197576f7b (diff)
fix oops
Diffstat (limited to 'src/components/timeline_menu')
-rw-r--r--src/components/timeline_menu/timeline_menu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js
index fcc7b4ef..c0d75c54 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)
}
},