From 58f234d544edcdf477db97e7946db63fb0e8c3c7 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 10 Aug 2024 14:21:21 +0300 Subject: [PATCH] Update point_editor.js --- web/js/point_editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,