From 96f9d59e50e18e3f727b97a415b2208c65c881c4 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 24 Apr 2024 10:56:47 +0200 Subject: [PATCH] fix clicking on "No matches found" in mail shows last previewed mail --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 30c4974be9..fdd8413c06 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -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;