diff --git a/lib/process-services-cloud/src/lib/form/components/widgets/group/group-cloud.widget.ts b/lib/process-services-cloud/src/lib/form/components/widgets/group/group-cloud.widget.ts index ac7a056fd2..9b66e3f4c2 100644 --- a/lib/process-services-cloud/src/lib/form/components/widgets/group/group-cloud.widget.ts +++ b/lib/process-services-cloud/src/lib/form/components/widgets/group/group-cloud.widget.ts @@ -69,17 +69,16 @@ export class GroupCloudWidgetComponent extends WidgetComponent implements OnInit this.preSelectGroup = this.field.value ? this.field.value : []; this.validate = this.field.readOnly ? false : true; } - // eslint-disable-next-line @typescript-eslint/no-unused-expressions - (this.search = new UntypedFormControl({ value: '', disabled: this.field.readOnly }, [])), - this.search.statusChanges - .pipe( - filter((value: string) => value === 'INVALID'), - takeUntilDestroyed(this.destroyRef) - ) - .subscribe(() => { - this.field.markAsInvalid(); - this.field.form.markAsInvalid(); - }); + this.search = new UntypedFormControl({ value: '', disabled: this.field.readOnly }, []); + this.search.statusChanges + .pipe( + filter((value: string) => value === 'INVALID'), + takeUntilDestroyed(this.destroyRef) + ) + .subscribe(() => { + this.field.markAsInvalid(); + this.field.form.markAsInvalid(); + }); this.search.statusChanges .pipe(