@@ -43,6 +43,7 @@ import {
4343 AppConfig ,
4444} from '../../../../../config/app-config.interface' ;
4545import { LinkService } from '../../../../core/cache/builders/link.service' ;
46+ import { RequestParam } from '../../../../core/cache/models/request-param.model' ;
4647import { FieldChangeType } from '../../../../core/data/object-updates/field-change-type.model' ;
4748import { FieldUpdate } from '../../../../core/data/object-updates/field-update.model' ;
4849import { FieldUpdates } from '../../../../core/data/object-updates/field-updates.model' ;
@@ -494,15 +495,19 @@ export class EditRelationshipListComponent implements OnInit, OnDestroy {
494495 observableCombineLatest ( [
495496 currentPagination$ ,
496497 this . currentItemIsLeftItem$ ,
498+ this . relatedEntityType$ ,
497499 ] ) . pipe (
498- switchMap ( ( [ currentPagination , currentItemIsLeftItem ] : [ PaginationComponentOptions , boolean ] ) => {
499- // get the relationships for the current item, relationshiptype and page
500+ switchMap ( ( [ currentPagination , currentItemIsLeftItem , relatedEntityType ] : [ PaginationComponentOptions , boolean , ItemType ] ) => {
501+ // get the relationships for the current page, item, relationship type and related entity type
500502 return this . relationshipService . getItemRelationshipsByLabel (
501503 this . item ,
502504 currentItemIsLeftItem ? this . relationshipType . leftwardType : this . relationshipType . rightwardType ,
503505 {
504506 elementsPerPage : currentPagination . pageSize ,
505507 currentPage : currentPagination . currentPage ,
508+ searchParams : [
509+ new RequestParam ( 'relatedEntityType' , relatedEntityType . label ) ,
510+ ] ,
506511 } ,
507512 true ,
508513 true ,
0 commit comments