diff options
Diffstat (limited to 'web/share')
-rw-r--r-- | web/share/js/kvm/msd.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js index 74d5622e..0935161d 100644 --- a/web/share/js/kvm/msd.js +++ b/web/share/js/kvm/msd.js @@ -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 { |