mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
fix JS error for selected === undefined
This commit is contained in:
parent
010197b8af
commit
fedfc78fb6
@ -1066,7 +1066,7 @@ app.classes.mail = AppJS.extend(
|
||||
if (data.attachmentsBlock) data.attachmentsBlockTitle = `${data.attachmentsBlock.length} attachments`;
|
||||
mailPreview.set_value({content:data});
|
||||
|
||||
if (selected.length>1)
|
||||
if (selected && selected.length>1)
|
||||
{
|
||||
// Leave if we're here and there is nothing selected, too many, or no data
|
||||
if (attachmentsBlock)
|
||||
|
Loading…
Reference in New Issue
Block a user