From 4fab0d3fb8a657870949a54ef580e34ebbf88721 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sun, 21 Jul 2024 11:31:55 +0000 Subject: [PATCH] web/ChangelogEntry: expect date to always exist --- web/src/components/changelog/ChangelogEntry.svelte | 4 +--- web/src/lib/types/changelogs.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/src/components/changelog/ChangelogEntry.svelte b/web/src/components/changelog/ChangelogEntry.svelte index d23500fc..4fdc1129 100644 --- a/web/src/components/changelog/ChangelogEntry.svelte +++ b/web/src/components/changelog/ChangelogEntry.svelte @@ -27,9 +27,7 @@
{version}
- {#if date} -
{formatDate(date)}
- {/if} +
{formatDate(date)}

{title}

diff --git a/web/src/lib/types/changelogs.ts b/web/src/lib/types/changelogs.ts index ed3d85f9..d07740d6 100644 --- a/web/src/lib/types/changelogs.ts +++ b/web/src/lib/types/changelogs.ts @@ -2,7 +2,7 @@ import type { SvelteComponent } from "svelte" export interface ChangelogMetadata { title: string, - date: string + date: string, banner?: { file: string, alt: string