fixed el variable

This commit is contained in:
Maxim Devaev 2021-07-28 10:21:38 +03:00
parent a32ce23fa8
commit 75e9b673bc

View File

@ -276,6 +276,7 @@ export function Msd() {
var __applyStateImageSelector = function() {
let s = __state;
let online = (s && s.online);
let el = $("msd-image-selector");
if (!online) {
el.options.length = 1; // Cleanup
@ -285,8 +286,6 @@ export function Msd() {
return;
}
let el = $("msd-image-selector");
if (el.options.length === 0) {
el.options[0] = new Option("~ Not selected ~", "", false, false);
} else {