From edde3cb05080e2b869cf2b38e265b6e6a1710d4a Mon Sep 17 00:00:00 2001 From: annampak Date: Fri, 9 Feb 2018 18:50:43 +0200 Subject: [PATCH] no message --- .../src/app/datasets/listing/dataset-listing.component.ts | 4 +++- .../dmps/wizard/listing/dataset-wizard-listing.component.ts | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dmp-frontend/src/app/datasets/listing/dataset-listing.component.ts b/dmp-frontend/src/app/datasets/listing/dataset-listing.component.ts index 84b0f9909..71b715f1b 100644 --- a/dmp-frontend/src/app/datasets/listing/dataset-listing.component.ts +++ b/dmp-frontend/src/app/datasets/listing/dataset-listing.component.ts @@ -58,7 +58,9 @@ export class DatasetListingComponent implements OnInit { this.criteria.setCriteria(this.getDefaultCriteria(this.dmpId)); this.refresh(); this.criteria.setRefreshCallback(() => this.refresh()); - if (this.dmpId != null) this.titlePrefix ="for " + params['dmpLabel']; + if (this.dmpId != null) + if(params['dmpLabel']!=undefined) + this.titlePrefix ="for " + params['dmpLabel']; }); } diff --git a/dmp-frontend/src/app/dmps/wizard/listing/dataset-wizard-listing.component.ts b/dmp-frontend/src/app/dmps/wizard/listing/dataset-wizard-listing.component.ts index ed000e17e..a03e4de83 100644 --- a/dmp-frontend/src/app/dmps/wizard/listing/dataset-wizard-listing.component.ts +++ b/dmp-frontend/src/app/dmps/wizard/listing/dataset-wizard-listing.component.ts @@ -56,8 +56,10 @@ export class DatasetWizardListingComponent implements OnInit { ngOnInit() { - this.route.params.subscribe((params: Params) => { - if (this.dmpId != null) this.titlePrefix ="for " + params['dmpLabel']; + this.route.params.subscribe((params: Params) => {debugger; + if (this.dmpId != null) + if(params['dmpLabel']!=undefined) + this.titlePrefix ="for " + params['dmpLabel']; }); let request: DataTableRequest = new DataTableRequest(null, null, null); request.criteria = new DatasetCriteria();