diff --git a/src/app/cdk/panel/panel/panel.component.ts b/src/app/cdk/panel/panel/panel.component.ts index b57923490..117a7348d 100644 --- a/src/app/cdk/panel/panel/panel.component.ts +++ b/src/app/cdk/panel/panel/panel.component.ts @@ -289,12 +289,11 @@ export class PanelComponent implements OnInit { ) .subscribe() break - case 'peer-review': + case 'peer-review': this._peerReviewService .updateVisibility( - this.elements.groupIdValue, - visibility, - this.elements?.groupId + this.elements.groupId, + visibility ) .subscribe() break diff --git a/src/app/core/record-peer-review/record-peer-review.service.ts b/src/app/core/record-peer-review/record-peer-review.service.ts index 58c52b1a9..d4360ec26 100644 --- a/src/app/core/record-peer-review/record-peer-review.service.ts +++ b/src/app/core/record-peer-review/record-peer-review.service.ts @@ -117,15 +117,14 @@ export class RecordPeerReviewService { } updateVisibility( - putCode: any, - visibility: VisibilityStrings, - groupId?: any - ): Observable { + groupId: any, + visibility: VisibilityStrings + ): Observable { return this._http .post( environment.API_WEB + 'peer-reviews/' + - putCode + + groupId + '/visibility/' + visibility, null