Add userId property to timelines so that we don't overwrite user timeline meant

for another user
This commit is contained in:
Henry Jameson 2018-12-03 09:29:33 +03:00
parent e15b9bddbb
commit ccb1682379
3 changed files with 16 additions and 5 deletions

View file

@ -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])
}