We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b23be7 commit 44d702eCopy full SHA for 44d702e
1 file changed
src/app/shared/form/builder/form-builder.service.ts
@@ -106,10 +106,8 @@ export class FormBuilderService extends DynamicFormService {
106
getTypeBindModelUpdates(): Observable<any> {
107
return this.typeBindModel.pipe(
108
distinctUntilChanged(),
109
- switchMap((bindModel: any) => {
110
- return (bindModel.type === 'CHECKBOX_GROUP' ? bindModel.valueUpdates : bindModel.valueChanges);
111
- }),
112
- distinctUntilChanged()
+ switchMap((bindModel: any) => bindModel.valueChanges),
+ distinctUntilChanged(),
113
);
114
}
115
0 commit comments