upgrade js api (#5152)

* upgrade to latest js api

* add missing types

* remove useless function

* fix types

* enable strict mode

* Revert "enable strict mode"

This reverts commit 8e3f9c4563.
This commit is contained in:
Denys Vuika
2019-10-14 18:28:01 +01:00
committed by Eugenio Romano
parent 47ec01555a
commit b3ca2166f0
9 changed files with 88 additions and 82 deletions

View File

@@ -67,13 +67,13 @@ export class AnalyticsGeneratorComponent implements OnChanges {
ngOnChanges() {
if (this.reportId && this.reportParamQuery) {
this.generateReport(this.reportId, this.reportParamQuery);
this.generateReport(`${this.reportId}`, this.reportParamQuery);
} else {
this.reset();
}
}
public generateReport(reportId, reportParamQuery) {
public generateReport(reportId: string, reportParamQuery: any) {
if (reportParamQuery === undefined || reportParamQuery === null) {
reportParamQuery = {};
}