fix clicking on "No matches found" in mail shows last previewed mail

This commit is contained in:
ralf 2024-04-24 10:56:47 +02:00
parent e3f550c3fc
commit 475219e23a

View File

@ -1144,7 +1144,7 @@ app.classes.mail = AppJS.extend(
// don't go further if the preview is supposed to be disabled and we're not in mobile view
if (previewPane == 'hide' && !egwIsMobile()) return;
if(typeof selected != 'undefined' && selected.length == 1)
if(typeof selected != 'undefined' && selected.length == 1 && selected[0])
{
rowId = this.mail_fetchCurrentlyFocussed(selected);
data = egw.dataGetUIDdata(rowId).data;