diff --git a/frontend/src/EasySwitchManager.jsx b/frontend/src/EasySwitchManager.jsx index 7808eac..d353e13 100644 --- a/frontend/src/EasySwitchManager.jsx +++ b/frontend/src/EasySwitchManager.jsx @@ -226,7 +226,11 @@ function EasySwitchManager() { const changesByServer = new Map(); changedEntries.forEach(([key, gateway]) => { - const [serverId, community] = key.split(':'); + // Разбиваем ключ по ПЕРВОМУ двоеточию, т.к. community содержит двоеточие (65001:120) + const firstColonIndex = key.indexOf(':'); + const serverId = key.substring(0, firstColonIndex); + const community = key.substring(firstColonIndex + 1); + if (!changesByServer.has(serverId)) { changesByServer.set(serverId, new Map()); }