mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 22:13:02 +00:00
intermediate bug commit
This commit is contained in:
2
src/app/core/cache/object-cache.service.ts
vendored
2
src/app/core/cache/object-cache.service.ts
vendored
@@ -91,7 +91,7 @@ export class ObjectCacheService {
|
||||
getBySelfLink<T extends NormalizedObject>(selfLink: string): Observable<T> {
|
||||
return this.getEntry(selfLink).pipe(
|
||||
map((entry: ObjectCacheEntry) => {
|
||||
const flatPatch: Operation[] = [].concat(...entry.patches);
|
||||
const flatPatch: Operation[] = [].concat(...entry.patches.map((patch) => patch.operations));
|
||||
const patchedData = applyPatch(entry.data, flatPatch).newDocument;
|
||||
return Object.assign({}, entry, { data: patchedData });
|
||||
}
|
||||
|
Reference in New Issue
Block a user