Fix roles store update

This commit is contained in:
Andrew Kingston 2024-09-12 10:33:30 +01:00
parent 0a627e6cf5
commit 35bdc998ca
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export function createRolesStore() {
roleId: role?._id, roleId: role?._id,
roleRev: role?._rev, roleRev: role?._rev,
}) })
update(state => state.filter(existing => existing._id !== role._id)) store.update(state => state.filter(existing => existing._id !== role._id))
}, },
save: async role => { save: async role => {
const savedRole = await API.saveRole(role) const savedRole = await API.saveRole(role)