correct structure of config state part

This commit is contained in:
Maren Süwer
2018-08-09 13:05:59 +02:00
parent e0063c5119
commit b0c1b64c43
2 changed files with 6 additions and 8 deletions

View File

@@ -60,10 +60,8 @@ function reducer(state: any = {}, action: any = {}) {
case FETCH_CONFIG_SUCCESS:
return {
...state,
config: {
entries: action.payload,
configUpdatePermission: action.payload._links.update ? true : false
}
entries: action.payload,
configUpdatePermission: action.payload._links.update ? true : false
};
default:
return state;