Fix compatibility with old redux api (#1618)

This commit is contained in:
Eduard Heimbuch
2021-04-21 10:11:15 +02:00
committed by GitHub
parent 1e83c34823
commit f154ba7d83
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
- type: fixed
description: Fix compatibility with old redux api ([#1618](https://github.com/scm-manager/scm-manager/pull/1618))

View File

@@ -53,7 +53,9 @@ type State = {
version: string;
links: Links;
};
me?: Me;
auth?: {
me?: Me;
};
};
const initialState: State = {};
@@ -72,7 +74,9 @@ const reducer = (state: State = initialState, action: ActionTypes = { type: ACTI
case "scm/me_success": {
return {
...state,
me: action.payload
auth: {
me: action.payload
}
};
}
default: {