Fix AuditPage build error mixing nullish coalescing with logical OR.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-02 09:34:15 +08:00
parent dd35234599
commit eb76e07a46

View file

@ -81,7 +81,7 @@ export function auditSummary(
}
if (action === "ne.exec_batch") {
return t("audit.summary.neExecBatch", {
n: String(d.target_count ?? ((d.ne_ids as unknown[]) || []).length || 0),
n: String(d.target_count ?? (((d.ne_ids as unknown[]) || []).length || 0)),
ok: String(d.ok_count ?? 0),
fail: String(d.fail_count ?? 0),
});