From ccb1682379fda5b34506cb0a04df2ce38eaad6ad Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 3 Dec 2018 09:29:33 +0300 Subject: Add userId property to timelines so that we don't overwrite user timeline meant for another user --- src/components/user_profile/user_profile.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/components/user_profile/user_profile.js') diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 26be1801..1d79713d 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -27,6 +27,7 @@ const UserProfile = { }, watch: { userId () { + this.$store.dispatch('stopFetching', 'user') this.$store.commit('clearTimeline', { timeline: 'user' }) this.$store.dispatch('startFetching', ['user', this.userId]) } -- cgit v1.2.3-70-g09d2