Check for data to possibly fix Liquid test

This commit is contained in:
softsimon 2021-09-26 13:41:33 +04:00
parent d938193393
commit d6e06c9998

View File

@ -30,6 +30,9 @@ export class LbtcPegsGraphComponent implements OnChanges {
) { } ) { }
ngOnChanges() { ngOnChanges() {
if (!this.data) {
return;
}
this.pegsChartOptions = this.createChartOptions(this.data.series, this.data.labels); this.pegsChartOptions = this.createChartOptions(this.data.series, this.data.labels);
} }