From e4a8c05d25ee2207be0583b762c048fec9f2e4df Mon Sep 17 00:00:00 2001 From: "Jens L." Date: Wed, 19 Mar 2025 23:06:37 +0000 Subject: [PATCH] web/admin: fix diff showing previous false as "-" (#13580) Signed-off-by: Jens Langhammer --- web/src/components/ak-event-info.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/components/ak-event-info.ts b/web/src/components/ak-event-info.ts index 0eb3396c89..e94944d976 100644 --- a/web/src/components/ak-event-info.ts +++ b/web/src/components/ak-event-info.ts @@ -271,9 +271,10 @@ export class EventInfo extends AKElement { ${Object.keys(diff).map((key) => { const value = diff[key]; - const previousCol = value.previous_value - ? JSON.stringify(value.previous_value, null, 4) - : msg("-"); + const previousCol = + value.previous_value !== null + ? JSON.stringify(value.previous_value, null, 4) + : msg("-"); let newCol = html``; if (value.add || value.remove) { newCol = html`