Further JS code style changes

This commit is contained in:
Claire
2023-02-04 11:09:05 +01:00
parent 3c451cf88f
commit fa433ac5a6
3 changed files with 22 additions and 14 deletions

View File

@ -13,11 +13,9 @@ const initialState = ImmutableMap({
export default function meta(state = initialState, action) {
switch(action.type) {
case STORE_HYDRATE:
return state.merge(
action.state.get('meta'))
return state.merge(action.state.get('meta'))
.set('permissions', action.state.getIn(['role', 'permissions']))
.set('layout', layoutFromWindow(action.state.getIn(['local_settings', 'layout'])),
);
.set('layout', layoutFromWindow(action.state.getIn(['local_settings', 'layout'])));
case APP_LAYOUT_CHANGE:
return state.set('layout', action.layout);
default: