fix non-timeline routes breaking current/previous timeline
This commit is contained in:
parent
fdbacba36a
commit
e86c5ea1fa
2 changed files with 4 additions and 2 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue