From f43073f8ef706360e149a8600ac87773be09f175 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Mon, 13 May 2024 17:31:49 +0300 Subject: [PATCH] bug fix on dmp-editor save --- .../app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts index 22fbe9bc4..ccc289181 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts @@ -181,7 +181,7 @@ export class DmpEditorComponent extends BaseEditor implemen this.matomoService.trackPageView('DMP Editor'); super.ngOnInit(); - if (this.isNew === false) this.nextStep(); + if (this.isNew === false && this.step === 0) this.nextStep(); } getItem(itemId: Guid, successFunction: (item: Dmp) => void) { @@ -273,7 +273,7 @@ export class DmpEditorComponent extends BaseEditor implemen refreshData(): void { this.getItem(this.editorModel.id, (data: Dmp) => { this.prepareForm(data) - if (this.isNew === false) this.nextStep(); + if (this.isNew === false && this.step===0) this.nextStep(); }); }