We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c42e5 commit 03acee4Copy full SHA for 03acee4
routes/index.tsx
@@ -4,9 +4,9 @@ import { fetchEvents } from "../lib/platform-api.tsx";
4
import { Event } from "../lib/types.d.tsx";
5
6
export default async function Index(req: Request, ctx: RouteContext) {
7
- const events = await fetchEvents(fetch);
+ const allEvents = await fetchEvents(fetch);
8
// ISO-8086 dates can be compared lexicographically
9
- events.filter(e => e.phase != "planning").sort((a: Event, b: Event) => getDate(a) > getDate(b) ? 1 : -1)
+ const events = allEvents.filter(e => e.phase != "planning").sort((a: Event, b: Event) => getDate(a) > getDate(b) ? 1 : -1)
10
.reverse();
11
return (
12
<div class="flex flex-col gap-4 mb-16">
0 commit comments