Fix roles store update
This commit is contained in:
parent
0a627e6cf5
commit
35bdc998ca
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue