#501 bug fix
This commit is contained in:
parent
85859ce078
commit
df609fd359
|
@ -231,18 +231,11 @@ export class VisibilityRulesService {
|
||||||
private resetFieldFormGroup(formGroup: FormGroup) {
|
private resetFieldFormGroup(formGroup: FormGroup) {
|
||||||
const renderStyle = formGroup.getRawValue().viewStyle.renderStyle;
|
const renderStyle = formGroup.getRawValue().viewStyle.renderStyle;
|
||||||
if (renderStyle === DatasetProfileFieldViewStyle.Validation || renderStyle === DatasetProfileFieldViewStyle.DatasetIdentifier) {
|
if (renderStyle === DatasetProfileFieldViewStyle.Validation || renderStyle === DatasetProfileFieldViewStyle.DatasetIdentifier) {
|
||||||
const value = { identifier: '', type: '' };
|
formGroup.get('value').setValue({ identifier: '', type: '' });
|
||||||
if (formGroup.get('value').value != value) {
|
|
||||||
formGroup.get('value').setValue(value, { emitEvent: false });
|
|
||||||
this.updateValueAndVisibility(formGroup.get('id').value, value);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
const value = formGroup.get('defaultValue').value ? this.parseValue(formGroup.get('defaultValue').value.value) : undefined;
|
formGroup.get('value').setValue(formGroup.get('defaultValue').value ? this.parseValue(formGroup.get('defaultValue').value.value) : undefined);
|
||||||
if (formGroup.get('value').value != value) {
|
|
||||||
formGroup.get('value').setValue(value, { emitEvent: false });
|
|
||||||
this.updateValueAndVisibility(formGroup.get('id').value, value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private resetCompositeFieldFormGroup(formGroup: FormGroup) {
|
private resetCompositeFieldFormGroup(formGroup: FormGroup) {
|
||||||
|
|
Loading…
Reference in New Issue