[DW-1563] Complete button is not present for empty forms (#5269)

* [DW-1563] Complete button is not present for empty forms

* [DW-1563] Revert part of the changes

* [DW-1563] Remove unnecessary variable declaration
This commit is contained in:
arditdomi
2019-11-20 15:32:25 +00:00
committed by Eugenio Romano
parent 202764631a
commit b016bf8167
3 changed files with 28 additions and 9 deletions

View File

@@ -300,7 +300,7 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
});
const form = new FormModel(formCloudRepresentationJSON, formValues, this.readOnly);
if (!form || !form.fields.length) {
if (!form) {
form.outcomes = this.getFormDefinitionOutcomes(form);
}
if (this.fieldValidators && this.fieldValidators.length > 0) {