mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
update users module to use new pending and error state
This commit is contained in:
@@ -34,7 +34,11 @@ export default function reducer(state: Object = {}, action: Action): Object {
|
||||
} else {
|
||||
const matches = RESET_PATTERN.exec(type);
|
||||
if (matches) {
|
||||
return removeFromState(state, matches[1]);
|
||||
let identifier = matches[1];
|
||||
if (action.itemId) {
|
||||
identifier += "/" + action.itemId;
|
||||
}
|
||||
return removeFromState(state, identifier);
|
||||
}
|
||||
}
|
||||
return state;
|
||||
|
||||
Reference in New Issue
Block a user