From 19cd17d9cd36424d3f5473f2b9801ae11fca12b0 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 27 May 2026 19:17:18 +0200 Subject: [PATCH] fix(documents): always render undated badge in DocumentRow desktop column MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The desktop right-column kept a leftover {#if doc.documentDate}…{:else}—{/if} fallback that emitted a bare em-dash for undated documents, while the mobile block already always rendered . DocumentDate defensively maps a null date to the "Datum unbekannt" badge, so render it unconditionally — an undated document is an absence, not an error, and never shows a bare "—". Refs #668 --- frontend/src/lib/document/DocumentRow.svelte | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/frontend/src/lib/document/DocumentRow.svelte b/frontend/src/lib/document/DocumentRow.svelte index ce39fe1d..44fcbd16 100644 --- a/frontend/src/lib/document/DocumentRow.svelte +++ b/frontend/src/lib/document/DocumentRow.svelte @@ -187,16 +187,15 @@ function safeTagColor(color: string | null | undefined): string {