From c97cd564396b3f51c6ccdc2993fb06d686603108 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Wed, 31 Aug 2022 23:32:02 +0100 Subject: [PATCH] only clear timelines on new profile --- src/components/user_profile/user_profile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }) } },