#1631 Should create an empty form when the process definitions are empty (#1633)

This commit is contained in:
Maurizio Vitale
2017-02-15 11:42:48 +00:00
committed by Vito
parent e3cbff0e35
commit c1493315bf
4 changed files with 29 additions and 0 deletions

View File

@@ -81,6 +81,9 @@ export class AnalyticsGeneratorComponent implements OnChanges {
}
public generateReport(reportId, reportParamQuery) {
if (reportParamQuery === undefined || reportParamQuery === null) {
reportParamQuery = {};
}
this.analyticsService.getReportsByParams(reportId, reportParamQuery).subscribe(
(res: Chart[]) => {
this.reports = res;