AAE-23521 fix trigger error check

This commit is contained in:
Kasia Biernat
2024-09-02 12:17:44 +02:00
parent 61be1f5dc6
commit 57d892afe3

View File

@@ -180,16 +180,10 @@ export class DropdownCloudWidgetComponent extends WidgetComponent implements OnI
)
.subscribe((value) => {
this.setOptionValue(value, this.field);
this.handleErrors();
this.selectionChangedForField(this.field);
});
this.dropdownControl.statusChanges
.pipe(
filter(() => !!this.field),
takeUntil(this.onDestroy$)
)
.subscribe(() => this.handleErrors());
this.dropdownControl.setValue(this.field?.value, { emitEvent: false });
this.handleErrors();
}