Custom reports fix

This commit is contained in:
mauriziovitale84
2016-11-10 09:13:55 +00:00
parent 15455276f9
commit aa73565f5c
3 changed files with 22 additions and 16 deletions

View File

@@ -134,7 +134,11 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges {
this.reportParamsSub = this.analyticsService.getReportParams(reportId).subscribe(
(res: ReportParametersModel) => {
this.reportParameters = res;
this.onSuccessReportParams.emit(res);
if (this.reportParameters.hasParameters()) {
this.onSuccessReportParams.emit(res);
} else {
this.onSuccess.emit();
}
},
(err: any) => {
console.log(err);