web/admin: fix diff showing previous false as "-" (#13580)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2025-03-19 23:06:37 +00:00
committed by GitHub
parent cb2e0c6d54
commit e4a8c05d25

View File

@ -271,7 +271,8 @@ export class EventInfo extends AKElement {
<tbody role="rowgroup">
${Object.keys(diff).map((key) => {
const value = diff[key];
const previousCol = value.previous_value
const previousCol =
value.previous_value !== null
? JSON.stringify(value.previous_value, null, 4)
: msg("-");
let newCol = html``;