Skip to content

Commit

Permalink
[DSC-1542] fix supervision selection
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoMolinaro committed Oct 16, 2024
1 parent 2efde9c commit 17ffbe3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<ds-error *ngIf="isSubmitted && !selectedGroup" message="{{'supervision-group-selector.select.group.error' | translate}}"></ds-error>
</ng-container>
<ds-eperson-group-list [isListOfEPerson]="false"
(deselect)="updateGroupObjectSelected($event)"
(select)="updateGroupObjectSelected($event)"></ds-eperson-group-list>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ export class SupervisionOrderGroupSelectorComponent {
* Assign the value of group on select
*/
updateGroupObjectSelected(object) {
this.selectedGroup = object;
console.log(object);
if (object && object !== this.selectedGroup) {
this.selectedGroup = object;
} else if (object) {
this.selectedGroup = null;
}
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/app/core/data/request.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export class RequestEffects {
);
}),
filter((entry: RequestEntry) => hasValue(entry)),
// TODO: test once rest part is aligned
withLatestFrom(this.xsrfService.tokenInitialized$),
// If it's a GET request, or we have an XSRF token, dispatch it immediately
// Otherwise wait for the XSRF token first
Expand Down

0 comments on commit 17ffbe3

Please sign in to comment.