diff --git a/web/js/point_editor.js b/web/js/point_editor.js index f02a48b..210591f 100644 --- a/web/js/point_editor.js +++ b/web/js/point_editor.js @@ -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,