bug fix on dmp-editor save

This commit is contained in:
Sofia Papacharalampous 2024-05-13 17:31:49 +03:00
parent ecc728b24c
commit f43073f8ef
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ export class DmpEditorComponent extends BaseEditor<DmpEditorModel, Dmp> 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<DmpEditorModel, Dmp> 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();
});
}