From 41a3b75c97874c03c778cabd368f57bfe0305670 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 21 Dec 2024 16:03:45 +0100 Subject: [PATCH] Fix Render --- .../announcements/de/schneeballschlacht-eventplan.md | 4 ++-- src/pages/ankuendigungen/[...slug].astro | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/content/announcements/de/schneeballschlacht-eventplan.md b/src/content/announcements/de/schneeballschlacht-eventplan.md index c41db90..b6e81ea 100644 --- a/src/content/announcements/de/schneeballschlacht-eventplan.md +++ b/src/content/announcements/de/schneeballschlacht-eventplan.md @@ -11,8 +11,8 @@ image: ../../../images/SchneeballschlachtMWG.png # Gruppenphase - + ## Kampfplan - \ No newline at end of file + \ No newline at end of file diff --git a/src/pages/ankuendigungen/[...slug].astro b/src/pages/ankuendigungen/[...slug].astro index 656c4b8..e5b1e47 100644 --- a/src/pages/ankuendigungen/[...slug].astro +++ b/src/pages/ankuendigungen/[...slug].astro @@ -109,6 +109,7 @@ const ogImage = await getImage({ import GroupTable from "@components/GroupTable.svelte"; import {eventRepo} from "../../components/repo/event"; import type {ExtendedEvent} from "@type/event"; + import {mount} from "svelte"; const eventMounts: Map void)[]> = new Map(); @@ -119,14 +120,14 @@ const ogImage = await getImage({ } const rows = Number.parseInt(this.dataset["rows"]!); eventMounts.get(this.dataset["event"]!)!.push(ev => { - new FightTable({ + mount(FightTable, { target: this, props: { event: ev, group: this.dataset["group"], rows: !isNaN(rows) ? rows : 1, }, - }); + }); }); } } @@ -138,14 +139,14 @@ const ogImage = await getImage({ } const rows = Number.parseInt(this.dataset["rows"]!); eventMounts.get(this.dataset["event"]!)!.push(ev => { - new GroupTable({ + mount(GroupTable, { target: this, props: { event: ev, group: this.dataset["group"], rows: !isNaN(rows) ? rows : 1, }, - }); + }); }); } }