mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-09-02 06:06:52 +02:00
Fix compatibility with old redux api (#1618)
This commit is contained in:
2
gradle/changelog/restore_redux_compatibility.yaml
Normal file
2
gradle/changelog/restore_redux_compatibility.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Fix compatibility with old redux api ([#1618](https://github.com/scm-manager/scm-manager/pull/1618))
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user