Skip to content

Commit

Permalink
Merged in task/dspace-cris-2023_02_x/DSC-1889 (pull request DSpace#2146)
Browse files Browse the repository at this point in the history
Fix Cache issues when editing an item

Approved-by: Andrea Barbasso
  • Loading branch information
atarix83 authored and Andrea Barbasso committed Aug 23, 2024
2 parents e6c7d44 + 9fe1e8f commit c4e09bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/item-page/item.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const ITEM_PAGE_LINKS_TO_FOLLOW: FollowLinkConfig<Item>[] = [
),
followLink('relationships'),
followLink('version', {}, followLink('versionhistory')),
followLink('bundles', {}, followLink('bitstreams')),
followLink('thumbnail'),
followLink('metrics')
];
Expand All @@ -45,7 +46,7 @@ export class ItemResolver implements Resolve<RemoteData<Item>> {
*/
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<RemoteData<Item>> {
const itemRD$ = this.itemService.findById(route.params.id,
true,
false,
false,
...ITEM_PAGE_LINKS_TO_FOLLOW
).pipe(
Expand Down

0 comments on commit c4e09bf

Please sign in to comment.