v1.5.49 - select emblem shape on culture level

This commit is contained in:
Azgaar 2021-02-21 15:55:52 +03:00
parent 7b1e463c92
commit bfc881bda9
6 changed files with 84 additions and 40 deletions

View file

@ -299,7 +299,8 @@ function changeEmblemShape(emblemShape) {
const rerenderCOA = (id, coa) => {
const coaEl = document.getElementById(id);
if (coaEl) coaEl.remove();
if (!coaEl) return; // not rendered
coaEl.remove();
COArenderer.trigger(id, coa);
}