forked from AkkomaGang/akkoma-fe
only clear timelines on new profile
This commit is contained in:
parent
5be3326f22
commit
a6051f49cf
1 changed files with 1 additions and 2 deletions
|
@ -103,10 +103,9 @@ const UserProfile = {
|
||||||
if (this.isUs) timelineTabMap['favorites'] = 'favorites'
|
if (this.isUs) timelineTabMap['favorites'] = 'favorites'
|
||||||
|
|
||||||
const timeline = timelineTabMap[nextTab]
|
const timeline = timelineTabMap[nextTab]
|
||||||
const lastTimeline = timelineTabMap[previousTab]
|
|
||||||
if (timeline) {
|
if (timeline) {
|
||||||
this.stopFetching()
|
this.stopFetching()
|
||||||
if (lastTimeline) this.$store.commit('clearTimeline', { timeline: lastTimeline })
|
|
||||||
this.$store.dispatch('startFetchingTimeline', { timeline: timeline, userId: this.userId })
|
this.$store.dispatch('startFetchingTimeline', { timeline: timeline, userId: this.userId })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue