From 10ff69ef60a95b9da47f312cb1d6b1535137d028 Mon Sep 17 00:00:00 2001 From: amontenegro Date: Mon, 6 Jan 2025 09:19:50 -0600 Subject: [PATCH] Use the numerical id of the group id instead of the actual valie --- src/app/cdk/panel/panel/panel.component.ts | 7 +++---- .../record-peer-review/record-peer-review.service.ts | 9 ++++----- 2 files changed, 7 insertions(+), 9 deletions(-) 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