Update point_editor.js

This commit is contained in:
kijai 2024-08-10 14:21:21 +03:00
parent a6f358ac29
commit 58f234d544

View File

@ -556,9 +556,9 @@ class PointsEditor {
}//end constructor
updateData = () => {
if (this.points.length == 0) {
console.log("no points")
return
if (!this.points || this.points.length === 0) {
console.log("no points");
return;
}
const combinedPoints = {
positive: this.points,