diff --git a/src/app/cdk/panel/panel/panel.component.ts b/src/app/cdk/panel/panel/panel.component.ts index 464a69f5b..b57923490 100644 --- a/src/app/cdk/panel/panel/panel.component.ts +++ b/src/app/cdk/panel/panel/panel.component.ts @@ -290,15 +290,9 @@ export class PanelComponent implements OnInit { .subscribe() break case 'peer-review': - const peerReviewPutCodes = [] - if (this.elements) { - this.elements.putCodes.forEach((putCode) => { - peerReviewPutCodes.push(putCode) - }) - } this._peerReviewService .updateVisibility( - peerReviewPutCodes.join(), + this.elements.groupIdValue, visibility, this.elements?.groupId ) 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 8b88d1d68..45fccdee0 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 @@ -122,12 +122,12 @@ export class RecordPeerReviewService { groupId?: any ): Observable { return this._http - .get( + .post( environment.API_WEB + 'peer-reviews/' + putCode + '/visibility/' + - visibility + visibility, null ) .pipe( retry(3),