From 0c2e3561d68ceae4a78b70d09bee66a59d25ceb7 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Fri, 20 Nov 2026 18:48:30 +0100 Subject: [PATCH] fix: use the audit placeholder for missing values --- static/js/audit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/audit.js b/static/js/audit.js index 164c016..a3456e0 100644 --- a/static/js/audit.js +++ b/static/js/audit.js @@ -35,7 +35,7 @@ function flatten(value, prefix, out) { } function show(value) { - if (value === undefined) return "—"; + if (value === undefined) return "(none)"; if (typeof value === "string" && value !== "") { return value.replaceAll("\r", "\\r").replaceAll("\n", "\\n").replaceAll("\t", "\\t"); } @@ -157,7 +157,7 @@ function diffCell(row, side) { const parts = row.fields.filter((field) => field[side] !== undefined); return h("td", null, h("div", { class: "diff-content", tabindex: "0", role: "group", "aria-label": side === "before" ? "Before content" : "After content" }, - parts.length ? parts.map((field) => diffValue(field[side], field.kind, side, labels.get(field.path) ?? field.path)) : "—")); + parts.length ? parts.map((field) => diffValue(field[side], field.kind, side, labels.get(field.path) ?? field.path)) : show(undefined))); } function diffTable(entry) {