v1.5.13 - Anarchy state form

This commit is contained in:
Azgaar 2021-02-09 01:43:12 +03:00
parent a5b2f23cee
commit d25965b618
4 changed files with 82 additions and 72 deletions

View file

@ -295,7 +295,8 @@ function editStates() {
const changed = nameChanged || formChanged || fullNameChanged;
if (formChanged) {
const form = formSelect.selectedOptions[0].dataset.form || null;
const selected = formSelect.selectedOptions[0];
const form = selected.parentElement.label || null;
if (form) s.form = form;
}