diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 89cd95fd..00868d3b 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -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 }) } },