list_edit: setListAccounts() is never an Promise<>, So don't need to use .then()

This commit is contained in:
Yonle 2026-02-28 16:11:36 +07:00
commit 4faf6d8b0d
No known key found for this signature in database
GPG key ID: 11889F326F523287

View file

@ -124,12 +124,12 @@ const ListsNew = {
useListsStore()
.createList({ title: this.titleDraft })
.then((list) => {
return useListsStore()
useListsStore()
.setListAccounts({
listId: list.id,
accountIds: [...this.addedUserIds],
})
.then(() => list.id)
return list.id
})
.then((listId) => {
this.$router.push({ name: 'lists-timeline', params: { id: listId } })