From f1070196a052e76dc7ca299a388959c817d62c45 Mon Sep 17 00:00:00 2001 From: apapachristou Date: Tue, 8 Oct 2019 18:26:55 +0300 Subject: [PATCH] Fixes bug on enumerating datasets at DMP Wizard 3d step when remove all datasets and then add new. --- .../dataset-editor/dataset-editor-wizard.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dmp-frontend/src/app/ui/quick-wizard/dataset-editor/dataset-editor-wizard.component.ts b/dmp-frontend/src/app/ui/quick-wizard/dataset-editor/dataset-editor-wizard.component.ts index 0251024f0..72f746bb5 100644 --- a/dmp-frontend/src/app/ui/quick-wizard/dataset-editor/dataset-editor-wizard.component.ts +++ b/dmp-frontend/src/app/ui/quick-wizard/dataset-editor/dataset-editor-wizard.component.ts @@ -81,6 +81,9 @@ export class DatasetEditorWizardComponent extends BaseComponent implements OnIni this.editedDataset = false; this._inputValue = "list"; (this.formGroup.get('datasets').get('datasetsList') as FormArray).removeAt(index); + if (index == 0) { + this.isFirst = true; + } } addDataset(isFirst: boolean) {