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