Fix lint in lists store
This commit is contained in:
parent
963e163858
commit
5515f53794
|
@ -47,7 +47,7 @@ export const useListsStore = defineStore('lists', {
|
||||||
this.allListsObject[listId] = { accountIds: [] }
|
this.allListsObject[listId] = { accountIds: [] }
|
||||||
}
|
}
|
||||||
this.allListsObject[listId].title = title
|
this.allListsObject[listId].title = title
|
||||||
|
|
||||||
const entry = find(this.allLists, { id: listId })
|
const entry = find(this.allLists, { id: listId })
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
this.allLists.push({ id: listId, title })
|
this.allLists.push({ id: listId, title })
|
||||||
|
@ -96,13 +96,13 @@ export const useListsStore = defineStore('lists', {
|
||||||
const set = new Set(accountIds)
|
const set = new Set(accountIds)
|
||||||
set.delete(accountId)
|
set.delete(accountId)
|
||||||
this.allListsObject[listId].accountIds = [...set]
|
this.allListsObject[listId].accountIds = [...set]
|
||||||
|
|
||||||
return result
|
return result
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
deleteList ({ listId }) {
|
deleteList ({ listId }) {
|
||||||
window.vuex.state.api.backendInteractor.deleteList({ listId })
|
window.vuex.state.api.backendInteractor.deleteList({ listId })
|
||||||
|
|
||||||
delete this.allListsObject[listId]
|
delete this.allListsObject[listId]
|
||||||
remove(this.allLists, list => list.id === listId)
|
remove(this.allLists, list => list.id === listId)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue