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) {