only clear timelines on new profile
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

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