list_edit: setListAccounts() is never an Promise<>, So don't need to use .then()
This commit is contained in:
parent
2ce11e56d4
commit
4faf6d8b0d
1 changed files with 2 additions and 2 deletions
|
|
@ -124,12 +124,12 @@ const ListsNew = {
|
||||||
useListsStore()
|
useListsStore()
|
||||||
.createList({ title: this.titleDraft })
|
.createList({ title: this.titleDraft })
|
||||||
.then((list) => {
|
.then((list) => {
|
||||||
return useListsStore()
|
useListsStore()
|
||||||
.setListAccounts({
|
.setListAccounts({
|
||||||
listId: list.id,
|
listId: list.id,
|
||||||
accountIds: [...this.addedUserIds],
|
accountIds: [...this.addedUserIds],
|
||||||
})
|
})
|
||||||
.then(() => list.id)
|
return list.id
|
||||||
})
|
})
|
||||||
.then((listId) => {
|
.then((listId) => {
|
||||||
this.$router.push({ name: 'lists-timeline', params: { id: listId } })
|
this.$router.push({ name: 'lists-timeline', params: { id: listId } })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue