fix routing in save-and-add-new button in dataset editor

This commit is contained in:
Bernaldo Mihasi 2023-09-22 13:15:32 +03:00
parent 34580f917f
commit 4cef17e999
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
if (data) {
if (saveType === this.saveAnd.addNew) {
this.router.navigate(['/reload']).then(() => {
this.router.navigate(['/datasets', 'new', this.formGroup.get('dmp').value.id]);
this.router.navigate(['/datasets', 'new', this.formGroup.get('dmp').value.id, this.dmpSectionIndex]);
})
} else if (saveType === this.saveAnd.close) {
this.router.navigate(['/reload']).then(() => {