diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-07-28 09:40:04 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-07-28 09:40:04 +0300 |
| commit | e86c5ea1fa7dcbae582707430a821d2197576f7b (patch) | |
| tree | de7c23a2fe374eed5565a95eb1c39019fecb157d /src/components/timeline_menu/timeline_menu.js | |
| parent | fdbacba36a99b1f2ef200b8194a1964d9b87f9e1 (diff) | |
fix non-timeline routes breaking current/previous timeline
Diffstat (limited to 'src/components/timeline_menu/timeline_menu.js')
| -rw-r--r-- | src/components/timeline_menu/timeline_menu.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js index 0afeb8b4..fcc7b4ef 100644 --- a/src/components/timeline_menu/timeline_menu.js +++ b/src/components/timeline_menu/timeline_menu.js @@ -26,7 +26,9 @@ const TimelineMenu = { if (this.currentUser && this.currentUser.locked) { this.$store.dispatch('startFetchingFollowRequests') } - this.$store.dispatch('setLastTimeline', this.$route.name) + if (timelineNames().includes(this.$route.name)) { + this.$store.dispatch('setLastTimeline', this.$route.name) + } }, methods: { openMenu () { |
