diff --git a/changelog.d/lists_edit.fix b/changelog.d/lists_edit.fix new file mode 100644 index 000000000..475662b6a --- /dev/null +++ b/changelog.d/lists_edit.fix @@ -0,0 +1 @@ +fixed list title not being saved when editing diff --git a/src/components/lists_edit/lists_edit.js b/src/components/lists_edit/lists_edit.js index ca36ab886..c62bf9769 100644 --- a/src/components/lists_edit/lists_edit.js +++ b/src/components/lists_edit/lists_edit.js @@ -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 }) diff --git a/src/stores/lists.js b/src/stores/lists.js index fbe2746fb..c4b47380d 100644 --- a/src/stores/lists.js +++ b/src/stores/lists.js @@ -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: [] } }