Refresh the province editor when regenerating

This commit is contained in:
Guillaume St-Pierre 2022-12-09 16:53:19 -05:00
parent eb1c0be0a8
commit 4308e418ff

View file

@ -171,6 +171,7 @@ function regenerateProvinces() {
document.querySelectorAll("[id^=provinceCOA]").forEach(el => el.remove()); document.querySelectorAll("[id^=provinceCOA]").forEach(el => el.remove());
emblems.selectAll("use").remove(); emblems.selectAll("use").remove();
if (layerIsOn("toggleEmblems")) drawEmblems(); if (layerIsOn("toggleEmblems")) drawEmblems();
refreshAllEditors();
} }
function regenerateBurgs() { function regenerateBurgs() {