mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
no more build errors, still issues with the selectors not returning anything
This commit is contained in:
4
src/app/core/cache/object-cache.reducer.ts
vendored
4
src/app/core/cache/object-cache.reducer.ts
vendored
@@ -48,7 +48,7 @@ const initialState: ObjectCacheState = Object.create(null);
|
||||
* @return ObjectCacheState
|
||||
* the new state
|
||||
*/
|
||||
export const objectCacheReducer = (state = initialState, action: ObjectCacheAction): ObjectCacheState => {
|
||||
export function objectCacheReducer(state = initialState, action: ObjectCacheAction): ObjectCacheState {
|
||||
switch (action.type) {
|
||||
|
||||
case ObjectCacheActionTypes.ADD: {
|
||||
@@ -67,7 +67,7 @@ export const objectCacheReducer = (state = initialState, action: ObjectCacheActi
|
||||
return state;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an object to the cache
|
||||
|
Reference in New Issue
Block a user