mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
fixed functionality after merge
This commit is contained in:
@@ -263,6 +263,7 @@ export class RelationshipService extends DataService<Relationship> {
|
||||
return this.getItemRelationshipsByLabel(item1, label)
|
||||
.pipe(
|
||||
getSucceededRemoteData(),
|
||||
isNotEmptyOperator(),
|
||||
tap((t) => console.log(t)),
|
||||
map((relationshipListRD: RemoteData<PaginatedList<Relationship>>) => relationshipListRD.payload.page),
|
||||
mergeMap((relationships: Relationship[]) => {
|
||||
@@ -322,9 +323,9 @@ export class RelationshipService extends DataService<Relationship> {
|
||||
const { relation, type } = relationshipAndType;
|
||||
let updatedRelationship;
|
||||
if (relationshipLabel === type.leftwardType) {
|
||||
updatedRelationship = Object.assign(new Relationship(), relation, { rightWardValue: nameVariant });
|
||||
updatedRelationship = Object.assign(new Relationship(), relation, { rightwardValue: nameVariant });
|
||||
} else {
|
||||
updatedRelationship = Object.assign(new Relationship(), relation, { leftWardValue: nameVariant });
|
||||
updatedRelationship = Object.assign(new Relationship(), relation, { leftwardValue: nameVariant });
|
||||
}
|
||||
return this.update(updatedRelationship);
|
||||
})
|
||||
|
Reference in New Issue
Block a user