aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-12-03 09:29:33 +0300
committerHenry Jameson <me@hjkos.com>2018-12-03 09:29:33 +0300
commitccb1682379fda5b34506cb0a04df2ce38eaad6ad (patch)
tree354056482a9f518029d55c61dc1432ede3ae125b /src/components/user_profile/user_profile.js
parente15b9bddbb23e36632982296a7c9ec01fd2bb7c7 (diff)
Add userId property to timelines so that we don't overwrite user timeline meant
for another user
Diffstat (limited to 'src/components/user_profile/user_profile.js')
-rw-r--r--src/components/user_profile/user_profile.js1
1 files changed, 1 insertions, 0 deletions
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])
}