diff --git a/src/store/modules/labels.js b/src/store/modules/labels.js index d0094812..24ad50c4 100644 --- a/src/store/modules/labels.js +++ b/src/store/modules/labels.js @@ -37,8 +37,8 @@ export default { update(label) }, removeLabelById(state, label) { - delete state.labels[label.id] remove(label) + delete state.labels[label.id] }, setLoaded(state, loaded) { state.loaded = loaded diff --git a/src/store/modules/lists.js b/src/store/modules/lists.js index 375defde..faab53c0 100644 --- a/src/store/modules/lists.js +++ b/src/store/modules/lists.js @@ -23,8 +23,8 @@ export default { }) }, removeListById(state, list) { - delete state[list.id] remove(list) + delete state[list.id] }, }, getters: { diff --git a/src/store/modules/namespaces.js b/src/store/modules/namespaces.js index 86d08c35..ae47a95f 100644 --- a/src/store/modules/namespaces.js +++ b/src/store/modules/namespaces.js @@ -55,8 +55,8 @@ export default { removeNamespaceById(state, namespaceId) { for (const n in state.namespaces) { if (state.namespaces[n].id === namespaceId) { - state.namespaces.splice(n, 1) remove(state.namespaces[n]) + state.namespaces.splice(n, 1) return } }