fix list title edit not working

This commit is contained in:
Henry Jameson 2025-12-22 14:14:40 +02:00
commit 202d1618c2
3 changed files with 4 additions and 3 deletions

View file

@ -0,0 +1 @@
fixed list title not being saved when editing

View file

@ -116,9 +116,7 @@ const ListsNew = {
},
updateListTitle () {
useListsStore().setList({ listId: this.id, title: this.titleDraft })
.then(() => {
this.title = this.findListTitle(this.id)
})
this.title = this.findListTitle(this.id)
},
createList () {
useListsStore().createList({ title: this.titleDraft })

View file

@ -43,6 +43,8 @@ export const useListsStore = defineStore('lists', {
})
},
setList ({ listId, title }) {
window.vuex.state.api.backendInteractor.updateList({ listId, title })
if (!this.allListsObject[listId]) {
this.allListsObject[listId] = { accountIds: [] }
}