diff --git a/src/app/item-page/edit-item-page/item-relationships/edit-relationship-list/edit-relationship-list.component.spec.ts b/src/app/item-page/edit-item-page/item-relationships/edit-relationship-list/edit-relationship-list.component.spec.ts index 3a627232a42..c0f7517e395 100644 --- a/src/app/item-page/edit-item-page/item-relationships/edit-relationship-list/edit-relationship-list.component.spec.ts +++ b/src/app/item-page/edit-item-page/item-relationships/edit-relationship-list/edit-relationship-list.component.spec.ts @@ -163,7 +163,10 @@ describe('EditRelationshipListComponent', () => { getFieldUpdates: observableOf({ [relationships[0].uuid]: fieldUpdate1, [relationships[1].uuid]: fieldUpdate2 - }) + }), + // eslint-disable-next-line @typescript-eslint/no-empty-function + initialize: () => { + }, } ); diff --git a/src/app/item-page/edit-item-page/item-relationships/edit-relationship-list/edit-relationship-list.component.ts b/src/app/item-page/edit-item-page/item-relationships/edit-relationship-list/edit-relationship-list.component.ts index c4b2bba36f4..24ab999f620 100644 --- a/src/app/item-page/edit-item-page/item-relationships/edit-relationship-list/edit-relationship-list.component.ts +++ b/src/app/item-page/edit-item-page/item-relationships/edit-relationship-list/edit-relationship-list.component.ts @@ -479,9 +479,14 @@ export class EditRelationshipListComponent implements OnInit, OnDestroy { ...linksToFollow ); }), - ).subscribe((rd: RemoteData>) => { - this.relationshipsRd$.next(rd); - }) + tap((rd: RemoteData>) => { + this.relationshipsRd$.next(rd); + }), + getAllSucceededRemoteData(), + getRemoteDataPayload(), + ).subscribe((relationshipPaginatedList: PaginatedList) => { + this.objectUpdatesService.initialize(this.url, relationshipPaginatedList.page, new Date()); + }), ); // keep isLastPage$ up to date based on relationshipsRd$ diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component.html index 28d00ccf7da..4669c6e50f2 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component.html +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component.html @@ -85,7 +85,7 @@