Fixes the routing on Dataset edit's save button.

This commit is contained in:
gkolokythas 2019-04-25 18:20:16 +03:00
parent c78e24782f
commit f98cfc2969
1 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
this.datasetWizardService.createDataset(this.formGroup.value) this.datasetWizardService.createDataset(this.formGroup.value)
.pipe(takeUntil(this._destroyed)) .pipe(takeUntil(this._destroyed))
.subscribe(data => { .subscribe(data => {
this.router.navigateByUrl('/datasets/dmp/' + this.formGroup.get('dmp').value.id); this.router.navigate(['datasets'], { queryParams: { dmpId: this.formGroup.get('dmp').value.id } });
}); });
} }