From cc4a7cab309535f791c40d6ef19af0d68d900bed Mon Sep 17 00:00:00 2001 From: kruschen Date: Wed, 14 Jan 2026 18:58:37 +0100 Subject: [PATCH] fix logic chech in modules/dynamic/auto-update.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- public/modules/dynamic/auto-update.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/modules/dynamic/auto-update.js b/public/modules/dynamic/auto-update.js index 393cd746..a9847788 100644 --- a/public/modules/dynamic/auto-update.js +++ b/public/modules/dynamic/auto-update.js @@ -1068,7 +1068,8 @@ export function resolveVersionConflicts(mapVersion) { const cellId = +polygon.getAttribute("cell"); const size = +polygon.getAttribute("size"); - if (!pointsStr || !cellId || !size) return; + // points string must exist, cell attribute must be present, and size must be non-zero + if (!pointsStr || polygon.getAttribute("cell") === null || !size) return; // Parse points string "x1,y1 x2,y2 x3,y3 ..." into array [[x1,y1], [x2,y2], ...] const points = pointsStr