From 4baf9683d12ec069e52118be8beb4b71e7864c15 Mon Sep 17 00:00:00 2001 From: Oliver Ford Date: Mon, 11 Mar 2024 18:57:00 +0000 Subject: [PATCH] Fix error, no tags/mail loading when all read Heh, thus proving I haven't had 0 unread for some time.. --- eml-client/src/App.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eml-client/src/App.svelte b/eml-client/src/App.svelte index ff2877b..990323f 100644 --- a/eml-client/src/App.svelte +++ b/eml-client/src/App.svelte @@ -69,7 +69,8 @@ "sent", "spam", ] // Ordered - specialQueries = specials.map((n) => allTagQueries.find((e) => e.name == n), + specialQueries = specials.flatMap( + (n) => allTagQueries.find((e) => e.name == n) ?? [], ) tagQueries = allTagQueries.filter((t) => !specials.includes(t.name)) })