Add userId property to timelines so that we don't overwrite user timeline meant
for another user
This commit is contained in:
parent
e15b9bddbb
commit
ccb1682379
3 changed files with 16 additions and 5 deletions
|
@ -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])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue