Merge pull request 'list_edit: setListAccounts() is never an Promise<>, So don't need to use .then()' (#3481) from Yonle/pleroma-fe:list_edit_fix-1 into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma-fe/pulls/3481
This commit is contained in:
HJ 2026-03-02 21:11:56 +00:00
commit a9a86bdbdc

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 } })