From cfff50e7d2b6727a7ce2c0f436954fbcbc19113a Mon Sep 17 00:00:00 2001 From: tree Date: Sat, 2 Mar 2024 18:17:22 +0100 Subject: [PATCH] fix events filter --- src/components/EventsPage.astro | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/EventsPage.astro b/src/components/EventsPage.astro index 3715122..4126e8f 100644 --- a/src/components/EventsPage.astro +++ b/src/components/EventsPage.astro @@ -97,15 +97,16 @@ places = places.sort((x, y) => x.num < y.num ? 1 : -1) - {upcoming.length > 0} -
-

Upcoming {title} ({upcoming.length})

-
- {upcoming.map((event) => ( - - ))} + {upcoming.length > 0 && +
+

Upcoming {title} ({upcoming.length})

+
+ {upcoming.map((event) => ( + + ))} +
-
+ } {pastTotal > 0 &&