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 42296a1d71a..2d2f7f627bb 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 @@ -193,6 +193,9 @@ describe('EditRelationshipListComponent', () => { [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 e396c5ee927..6f817bbdbca 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 @@ -509,8 +509,13 @@ 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()); }), ); 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 112175d8066..90c4a41ffd1 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 @@