Fix removing a namespace not removing it from the list
This commit is contained in:
@ -41,6 +41,14 @@ export default {
|
||||
addNamespace(state, namespace) {
|
||||
state.namespaces.push(namespace)
|
||||
},
|
||||
removeNamespaceById(state, namespaceId) {
|
||||
for (const n in state.namespaces) {
|
||||
if (state.namespaces[n].id === namespaceId) {
|
||||
state.namespaces.splice(n, 1)
|
||||
return
|
||||
}
|
||||
}
|
||||
},
|
||||
addListToNamespace(state, list) {
|
||||
for (const n in state.namespaces) {
|
||||
if (state.namespaces[n].id === list.namespaceId) {
|
||||
|
Reference in New Issue
Block a user