Fix removing a namespace from state after it was deleted

This commit is contained in:
kolaente 2021-05-26 17:39:57 +02:00
parent 188134ae2e
commit 9c799ab161
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
3 changed files with 12 additions and 5 deletions

View file

@ -131,9 +131,7 @@ export default {
NamespaceSettingsDropdown,
},
computed: mapState({
namespaces(state) {
return state.namespaces.namespaces.filter(n => !n.isArchived)
},
namespaces: state => state.namespaces.namespaces.filter(n => !n.isArchived),
currentList: CURRENT_LIST,
background: 'background',
menuActive: MENU_ACTIVE,