AAE-34972 Test PR for adf link (#10861)

This commit is contained in:
Tomasz Gnyp
2025-05-20 15:57:02 +02:00
committed by GitHub
parent 2fd960bf5c
commit b3900b96ed

View File

@@ -358,7 +358,7 @@ export class FormModel implements ProcessFormModel {
this.handleSectionField(field, formFieldModel);
} else if (this.isContainerField(field)) {
this.handleContainerField(field, formFieldModel);
} else {
} else if (this.isFormField(field)) {
this.handleSingleField(field, formFieldModel);
}
});
@@ -368,6 +368,10 @@ export class FormModel implements ProcessFormModel {
return field instanceof ContainerModel;
}
private isFormField(field: ContainerModel | FormFieldModel): field is FormFieldModel {
return field instanceof FormFieldModel;
}
private isSectionField(field: ContainerModel | FormFieldModel): field is FormFieldModel {
return field.type === FormFieldTypes.SECTION;
}