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 11cd2c110e
commit 96f9d59e50

View File

@ -1153,7 +1153,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;