Fixes bug on enumerating datasets at DMP Wizard 3d step when remove all datasets and then add new.

This commit is contained in:
apapachristou 2019-10-08 18:26:55 +03:00
parent 27ddc0a184
commit f1070196a0
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ export class DatasetEditorWizardComponent extends BaseComponent implements OnIni
this.editedDataset = false; this.editedDataset = false;
this._inputValue = "list"; this._inputValue = "list";
(this.formGroup.get('datasets').get('datasetsList') as FormArray).removeAt(index); (this.formGroup.get('datasets').get('datasetsList') as FormArray).removeAt(index);
if (index == 0) {
this.isFirst = true;
}
} }
addDataset(isFirst: boolean) { addDataset(isFirst: boolean) {