allow for missing or unselected option

This commit is contained in:
stewart allen 2021-05-05 13:58:13 -04:00
commit d5023bddf3

View file

@ -1881,7 +1881,8 @@
}; };
function optSelected(sel) { function optSelected(sel) {
return sel.options[sel.selectedIndex].value; let opt = sel.options[sel.selectedIndex];
return opt ? opt.value : undefined;
} }
function fillShow() { function fillShow() {