fix list title edit not working
This commit is contained in:
parent
c2732e3f40
commit
202d1618c2
3 changed files with 4 additions and 3 deletions
1
changelog.d/lists_edit.fix
Normal file
1
changelog.d/lists_edit.fix
Normal file
|
|
@ -0,0 +1 @@
|
|||
fixed list title not being saved when editing
|
||||
|
|
@ -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 })
|
||||
|
|
|
|||
|
|
@ -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: [] }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue