mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
ESLint: fix dangling commas
This commit is contained in:
14
src/app/core/cache/object-cache.reducer.ts
vendored
14
src/app/core/cache/object-cache.reducer.ts
vendored
@@ -177,8 +177,8 @@ function addToObjectCache(state: ObjectCacheState, action: AddToObjectCacheActio
|
||||
dependentRequestUUIDs: existing.dependentRequestUUIDs || [],
|
||||
isDirty: isNotEmpty(existing.patches),
|
||||
patches: existing.patches || [],
|
||||
alternativeLinks: [...(existing.alternativeLinks || []), ...newAltLinks]
|
||||
} as ObjectCacheEntry
|
||||
alternativeLinks: [...(existing.alternativeLinks || []), ...newAltLinks],
|
||||
} as ObjectCacheEntry,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ function resetObjectCacheTimestamps(state: ObjectCacheState, action: ResetObject
|
||||
const newState = Object.create(null);
|
||||
Object.keys(state).forEach((key) => {
|
||||
newState[key] = Object.assign({}, state[key], {
|
||||
timeCompleted: action.payload
|
||||
timeCompleted: action.payload,
|
||||
});
|
||||
});
|
||||
return newState;
|
||||
@@ -241,7 +241,7 @@ function addPatchObjectCache(state: ObjectCacheState, action: AddPatchObjectCach
|
||||
const patches = newState[uuid].patches;
|
||||
newState[uuid] = Object.assign({}, newState[uuid], {
|
||||
patches: [...patches, { operations } as Patch],
|
||||
isDirty: true
|
||||
isDirty: true,
|
||||
});
|
||||
}
|
||||
return newState;
|
||||
@@ -286,8 +286,8 @@ function addDependentsObjectCacheState(state: ObjectCacheState, action: AddDepen
|
||||
...new Set([
|
||||
...newState[href]?.dependentRequestUUIDs || [],
|
||||
...action.payload.dependentRequestUUIDs,
|
||||
])
|
||||
]
|
||||
]),
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ function removeDependentsObjectCacheState(state: ObjectCacheState, action: Remov
|
||||
|
||||
if (hasValue(newState[href])) {
|
||||
newState[href] = Object.assign({}, newState[href], {
|
||||
dependentRequestUUIDs: []
|
||||
dependentRequestUUIDs: [],
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user