diff options
Diffstat (limited to 'web/share/js')
-rw-r--r-- | web/share/js/kvm/msd.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js index 01504934..a7095c54 100644 --- a/web/share/js/kvm/msd.js +++ b/web/share/js/kvm/msd.js @@ -320,14 +320,11 @@ export function Msd() { var __applyStateImageSelector = function() { let s = __state; - let el = $("msd-image-selector"); - if (!(s && s.online)) { - el.options.length = 1; // Cleanup - return; - } - if (s.storage.uploading || s.storage.downloading) { + if (!(s && s.online) || s.storage.uploading || s.storage.downloading) { return; } + + let el = $("msd-image-selector"); el.options.length = 1; let selected = ""; |