e.g. when the user changes the email while having a mail selected,
it gets unselected (albeit briefly) and update will be called
with 'undefined'
this throws an error, so prevent this by always supplying an object
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
update: function(data) {
let me = this;
let escaped = {};
- for (const [key, value] of Object.entries(data)) {
+ for (const [key, value] of Object.entries(data || {})) {
escaped[key] = Ext.util.Format.ellipsis(Ext.htmlEncode(value), 103);
}
me.items.each((item) => item.update(escaped));