From bce965ba2a8c00726ca093a67a0893bdaa39fd79 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Tue, 1 Jul 2025 19:52:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Fix=20lint=20errors=20using=20Bi?= =?UTF-8?q?ome?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/projects/ProjectPage.astro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/projects/ProjectPage.astro b/src/components/projects/ProjectPage.astro index 9377508..1b8ec63 100644 --- a/src/components/projects/ProjectPage.astro +++ b/src/components/projects/ProjectPage.astro @@ -16,7 +16,10 @@ interface Props { const { project } = Astro.props const entry = await getEntry("projects", project) -const { Content } = await render(entry!) +if (!entry) { + throw new Error("Project not found") +} +const { Content } = await render(entry) const { lang, title, @@ -28,7 +31,7 @@ const { source, createdAt, updatedAt, -} = entry!.data +} = entry.data function localeDateString(isoString: string): string { let template = "DD-MM-YYYY"