Fixes: bug on multiple post requests

This commit is contained in:
apapachristou 2019-06-04 10:25:25 +03:00
parent 11a00ec26a
commit bfb0e19f64
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ export class DatasetListingComponent extends BaseComponent implements OnInit, IB
const queryParams = this.route.snapshot.queryParams;
this.dmpId = queryParams['dmpId'];
this.status = queryParams['status'];
this.criteria.setRefreshCallback(() => this.refresh());
// Makes multiple post requests
// this.criteria.setRefreshCallback(() => this.refresh());
if (this.dmpId != null) {
this.dmpSearchEnabled = false;
const dmp = await this.dmpService.getSingle(this.dmpId).toPromise();