]> git.proxmox.com Git - pmg-gui.git/commitdiff
quarantine list: cope with undefined mail value
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Nov 2022 16:36:11 +0000 (17:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Nov 2022 16:36:13 +0000 (17:36 +0100)
can be (temporarily) null for some selections

Fixes: cd0b3ff ("quarantines: mail filter: add clear trigger")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/QuarantineList.js

index 9161a552ed92f4c8e9c47f55df512fd524af7cf6..faeacd65d3ef78d5b730f88fccc01408284effdb 100644 (file)
@@ -190,7 +190,7 @@ Ext.define('PMG.QuarantineList', {
            } else {
                me.setUser(value);
            }
-           tb.triggers.clear.setVisible(value.length > 0 && value !== 'all');
+           tb.triggers.clear.setVisible(value?.length > 0 && value !== 'all');
            me.load();
        },