only clear timelines on new profile

This commit is contained in:
FloatingGhost 2022-08-31 23:32:02 +01:00
parent 49875ef601
commit c97cd56439

View file

@ -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 })
}
},