]> git.proxmox.com Git - pmg-gui.git/commit
fix MailInfo update without data
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 16 Apr 2020 10:25:02 +0000 (12:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 16 Apr 2020 12:44:58 +0000 (14:44 +0200)
commit60652b756a660e9c706f3d1a908e9113a77a5fa5
tree179f406249bcc43407924293d4cca5f873c7183d
parent590a3b9fa3ba1ef1d595b88513f4cc8ec6f15b29
fix MailInfo update without data

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>
js/MailInfo.js