Skip to content

Commit 4381b50

Browse files
atarix83Andrea Barbasso
authored andcommitted
Merged in task/dspace-cris-2023_02_x/DSC-2107 (pull request DSpace#2655)
[DSC-2107] Fix issue when retrieving value from type bind model Approved-by: Andrea Barbasso
2 parents 3b23be7 + 44d702e commit 4381b50

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app/shared/form/builder/form-builder.service.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,8 @@ export class FormBuilderService extends DynamicFormService {
106106
getTypeBindModelUpdates(): Observable<any> {
107107
return this.typeBindModel.pipe(
108108
distinctUntilChanged(),
109-
switchMap((bindModel: any) => {
110-
return (bindModel.type === 'CHECKBOX_GROUP' ? bindModel.valueUpdates : bindModel.valueChanges);
111-
}),
112-
distinctUntilChanged()
109+
switchMap((bindModel: any) => bindModel.valueChanges),
110+
distinctUntilChanged(),
113111
);
114112
}
115113

0 commit comments

Comments
 (0)