Skip to content

Commit

Permalink
Merged in task/dspace-cris-2023_02_x/DSC-2107 (pull request DSpace#2655)
Browse files Browse the repository at this point in the history
[DSC-2107] Fix issue when retrieving value from type bind model

Approved-by: Andrea Barbasso
  • Loading branch information
atarix83 authored and Andrea Barbasso committed Dec 24, 2024
2 parents 3b23be7 + 44d702e commit 4381b50
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/shared/form/builder/form-builder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,8 @@ export class FormBuilderService extends DynamicFormService {
getTypeBindModelUpdates(): Observable<any> {
return this.typeBindModel.pipe(
distinctUntilChanged(),
switchMap((bindModel: any) => {
return (bindModel.type === 'CHECKBOX_GROUP' ? bindModel.valueUpdates : bindModel.valueChanges);
}),
distinctUntilChanged()
switchMap((bindModel: any) => bindModel.valueChanges),
distinctUntilChanged(),
);
}

Expand Down

0 comments on commit 4381b50

Please sign in to comment.