From: Thomas Lamprecht Date: Tue, 29 Nov 2022 16:36:11 +0000 (+0100) Subject: quarantine list: cope with undefined mail value X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;ds=sidebyside;h=5b920c359ebfb4b915c89ceb891f381981268482;p=pmg-gui.git quarantine list: cope with undefined mail value can be (temporarily) null for some selections Fixes: cd0b3ff ("quarantines: mail filter: add clear trigger") Signed-off-by: Thomas Lamprecht --- diff --git a/js/QuarantineList.js b/js/QuarantineList.js index 9161a55..faeacd6 100644 --- a/js/QuarantineList.js +++ b/js/QuarantineList.js @@ -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(); },