fix: border layer on/off detection on load

This commit is contained in:
Azgaar 2023-08-08 17:20:08 +04:00
parent f7cb157cf3
commit b0887b14d6
3 changed files with 3 additions and 3 deletions

View file

@ -408,7 +408,7 @@ async function parseLoadedData(data) {
if (hasChildren(statesBody)) turnOn("toggleStates");
if (hasChildren(provs)) turnOn("toggleProvinces");
if (hasChildren(zones) && notHidden(zones)) turnOn("toggleZones");
if (notHidden(borders) && hasChild(compass, "use")) turnOn("toggleBorders");
if (notHidden(borders) && hasChild(borders, "path")) turnOn("toggleBorders");
if (notHidden(routes) && hasChild(routes, "path")) turnOn("toggleRoutes");
if (hasChildren(temperature)) turnOn("toggleTemp");
if (hasChild(population, "line")) turnOn("togglePopulation");