clear userId property of timeline by default in clearTimeline action
This commit is contained in:
parent
221db9f210
commit
0e9b8be88c
2 changed files with 4 additions and 3 deletions
|
@ -395,8 +395,9 @@ export const mutations = {
|
|||
state[key] = value
|
||||
})
|
||||
},
|
||||
clearTimeline (state, { timeline }) {
|
||||
state.timelines[timeline] = emptyTl(state.timelines[timeline].userId)
|
||||
clearTimeline (state, { timeline, excludeUserId = false }) {
|
||||
const userId = excludeUserId ? state.timelines[timeline].userId : undefined
|
||||
state.timelines[timeline] = emptyTl(userId)
|
||||
},
|
||||
clearNotifications (state) {
|
||||
state.notifications = emptyNotifications()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue