Lists implementation: tests, linter fix
This commit is contained in:
parent
171f6f0894
commit
b5eba5974c
2 changed files with 4 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ const actions = {
|
|||
commit('setList', { id, title })
|
||||
},
|
||||
setListAccounts ({ rootState, commit }, { id, accountIds }) {
|
||||
const saved = rootState.lists.allListsObject[id].accountIds
|
||||
const saved = rootState.lists.allListsObject[id].accountIds || []
|
||||
const added = accountIds.filter(id => !saved.includes(id))
|
||||
const removed = saved.filter(id => !accountIds.includes(id))
|
||||
commit('setListAccounts', { id, accountIds })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue