Fix null reference
This commit is contained in:
parent
c2e4bd1bc4
commit
ceb8796590
@ -176,7 +176,9 @@ export default class ChartViewModel extends ViewModel {
|
|||||||
* @param {string} $className
|
* @param {string} $className
|
||||||
*/
|
*/
|
||||||
pointsRemoveClass($className) {
|
pointsRemoveClass($className) {
|
||||||
this.chartPoints.forEach((el) => el.classList.remove($className));
|
if (this.model.chartVisible && this.chartPoints) {
|
||||||
|
this.chartPoints.forEach((el) => el.classList.remove($className));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user