fix routing in save-and-add-new button in dataset editor
This commit is contained in:
parent
34580f917f
commit
4cef17e999
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue