forked from hazza/dspace-angular
final bug fixing
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
@@ -95,14 +95,10 @@ export function objectCacheReducer(state = initialState, action: ObjectCacheActi
|
||||
switch (action.type) {
|
||||
|
||||
case ObjectCacheActionTypes.ADD: {
|
||||
if ((action.payload as any).objectToCache instanceof NormalizedItem) {
|
||||
console.log('ADD', (action.payload as any).objectToCache.self);
|
||||
}
|
||||
return addToObjectCache(state, action as AddToObjectCacheAction);
|
||||
}
|
||||
|
||||
case ObjectCacheActionTypes.REMOVE: {
|
||||
console.log('REMOVE', action.payload);
|
||||
return removeFromObjectCache(state, action as RemoveFromObjectCacheAction)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user