@alfresco/aca-content 8.1.0-44486740608 → 8.1.0-44538010373

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -152,9 +152,7 @@ function updateUser(state, action) {
152
152
  return { ...state, user: { ...action.payload } };
153
153
  }
154
154
  function updateCurrentFolder(state, action) {
155
- const newState = { ...state };
156
- newState.navigation.currentFolder = action.payload;
157
- return newState;
155
+ return { ...state, navigation: { ...state.navigation, currentFolder: action.payload } };
158
156
  }
159
157
  function updateCurrentNodeVersion(state, action) {
160
158
  const newState = { ...state };
@@ -162,9 +160,7 @@ function updateCurrentNodeVersion(state, action) {
162
160
  return newState;
163
161
  }
164
162
  function updateCurrentUrl(state, action) {
165
- const newState = { ...state };
166
- newState.navigation.url = action.payload;
167
- return newState;
163
+ return { ...state, navigation: { ...state.navigation, url: action.payload } };
168
164
  }
169
165
  function toggleInfoDrawer(state) {
170
166
  const newState = { ...state };