16439: Merge branch 'master' into 16439-objects-creation-placement-fix
[arvados-workbench2.git] / src / store / resources / resources-reducer.ts
index 22108e04a78ff8f9822800a8e1c52f49a40c1acb..bb0cd383d8f6f7f7741506b9a2a0cbf8735f6980 100644 (file)
@@ -7,7 +7,11 @@ import { ResourcesAction, resourcesActions } from './resources-actions';
 
 export const resourcesReducer = (state: ResourcesState = {}, action: ResourcesAction) =>
     resourcesActions.match(action, {
-        SET_RESOURCES: resources => resources.reduce((state, resource) => setResource(resource.uuid, resource)(state), state),
-        DELETE_RESOURCES: ids => ids.reduce((state, id) => deleteResource(id)(state), state),
+        SET_RESOURCES: resources => resources.reduce(
+            (state, resource) => setResource(resource.uuid, resource)(state),
+            state),
+        DELETE_RESOURCES: ids => ids.reduce(
+            (state, id) => deleteResource(id)(state),
+            state),
         default: () => state,
     });
\ No newline at end of file