From 5f3592412bc14196562ab75783bcdc33fd9cc779 Mon Sep 17 00:00:00 2001 From: StempunkDev Date: Sun, 8 Mar 2026 01:31:11 +0100 Subject: [PATCH] refactor: update label indexing to use current length for state and custom labels --- public/modules/dynamic/auto-update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/modules/dynamic/auto-update.js b/public/modules/dynamic/auto-update.js index aaf63539..be2e535a 100644 --- a/public/modules/dynamic/auto-update.js +++ b/public/modules/dynamic/auto-update.js @@ -1136,7 +1136,7 @@ export function resolveVersionConflicts(mapVersion) { const fontSize = fontSizeAttr ? parseFloat(fontSizeAttr) : 100; pack.labels.push({ - i: labelId++, + i: pack.labels.length, type: "state", stateId: stateId, text: text, @@ -1238,7 +1238,7 @@ export function resolveVersionConflicts(mapVersion) { if (pathPoints.length > 0) { pack.labels.push({ - i: labelId++, + i: pack.labels.length, type: "custom", group: group, text: text,