diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-15 23:31:05 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-15 23:31:05 +0300 |
| commit | bbd99dc3cf5e4877c9f2cb824c0ca74a681c2fa0 (patch) | |
| tree | d119f62f2fa4d627a20a82b372b443999e88a2fb /src/modules/lists.js | |
| parent | 50f5afbce1f2bc4dbd0ddf6c951c7e519dfc6ce3 (diff) | |
fix
Diffstat (limited to 'src/modules/lists.js')
| -rw-r--r-- | src/modules/lists.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/lists.js b/src/modules/lists.js index 5c9432ad..d9fab969 100644 --- a/src/modules/lists.js +++ b/src/modules/lists.js @@ -15,10 +15,10 @@ export const mutations = { } state.allListsObject[listId].title = title - if (!find(state.allLists, { listId })) { - state.allLists.push({ listId, title }) + if (!find(state.allLists, { id: listId })) { + state.allLists.push({ id: listId, title }) } else { - find(state.allLists, { listId }).title = title + find(state.allLists, { id: listId }).title = title } }, setListAccounts (state, { listId, accountIds }) { @@ -61,7 +61,7 @@ const actions = { }, fetchList ({ rootState, commit }, { listId }) { return rootState.api.backendInteractor.getList({ listId }) - .then((list) => commit('setList', { id: list.id, title: list.title })) + .then((list) => commit('setList', { listId: list.id, title: list.title })) }, fetchListAccounts ({ rootState, commit }, { listId }) { return rootState.api.backendInteractor.getListAccounts({ listId }) |
