Added fix for getReportsbyParams

This commit is contained in:
Vito Albano 2016-11-11 10:51:47 +00:00
parent 572d9b37e5
commit f5db0dddc8

View File

@ -185,7 +185,7 @@ export class AnalyticsService {
getReportsByParams(reportId: number, paramsQuery: any): Observable<any> {
let url = `${this.alfrescoSettingsService.getBPMApiBaseUrl()}/app/rest/reporting/report-params/${reportId}`;
let body = JSON.stringify(paramsQuery);
let body = paramsQuery ? JSON.stringify(paramsQuery) : {};
let options = this.getRequestOptions();
return this.http
.post(url, body, options)