From 7305af8f8865fac380689c181ae644e405c9cd85 Mon Sep 17 00:00:00 2001 From: Spicy Marinara Date: Wed, 25 Feb 2026 23:58:26 +0100 Subject: [PATCH] Update src/systems/ui/trackerEditor.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/systems/ui/trackerEditor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systems/ui/trackerEditor.js b/src/systems/ui/trackerEditor.js index 7a0cabf..d4f6f48 100644 --- a/src/systems/ui/trackerEditor.js +++ b/src/systems/ui/trackerEditor.js @@ -44,7 +44,8 @@ function set_ids_names(list_with_stats, index, value) { list_with_stats[index].name = value; const ids = list_with_stats.toSpliced(index, 1).map(stat => stat.id); const snake_value = safeToSnake(value); // new id format - if (snake_value !== value && !ids.includes(snake_value)) { // check if this id already exists + const currentId = list_with_stats[index].id; + if (snake_value !== currentId && !ids.includes(snake_value)) { // check if this id already exists list_with_stats[index].id = snake_value; } return list_with_stats;