Fix for states editor when culture is deleted

This commit is contained in:
Evolvedexperiment 2019-11-13 18:16:29 +00:00
parent b5b8a48456
commit 2b6f8b3101
2 changed files with 3 additions and 2 deletions

View file

@ -158,7 +158,7 @@ function editStates() {
function getCultureOptions(culture) {
let options = "";
pack.cultures.slice(1).forEach(c => options += `<option ${c.i === culture ? "selected" : ""} value="${c.i}">${c.name}</option>`);
pack.cultures.forEach(c => {if (!c.removed) { options += `<option ${c.i === culture ? "selected" : ""} value="${c.i}">${c.name}</option>` }});
return options;
}