Fix error mailPreview undefined happening in mobile view

This commit is contained in:
Hadi Nategh 2023-02-10 10:33:49 +01:00
parent 30aaa734c9
commit 4fae387ec5

View File

@ -1075,7 +1075,7 @@ app.classes.mail = AppJS.extend(
data.attachmentsBlockTitle = _data.length > 1 ? `+${_data.length-1}` : '';
// Update client cache to avoid resolving winmail.dat attachment again
egw.dataStoreUID(data.uid, data);
mailPreview.set_value({content:data});
if (!egwIsMobile()) mailPreview.set_value({content:data});
}
else
{
@ -1157,7 +1157,7 @@ app.classes.mail = AppJS.extend(
sel_options.attachmentsBlock.actions = actions;
}
mailPreview.set_value({content:data, sel_options:sel_options});
if (!egwIsMobile()) mailPreview.set_value({content:data, sel_options:sel_options});
if (selected && selected.length>1)
{