Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Preserve the optional completion timestamp type

pulse-triage[bot]c1e25e61c477
diff --git a/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx b/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx
index 17a4484bc4..23f4aafd8d 100644
--- a/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASProtectionTable.tsx
@@ -179,7 +179,7 @@ const sizeLabel = (point: RecoveryPoint): string =>
// A start is not a finish. Running replication can also retain a last-run
// timestamp in completedAt, which is not completion of the active run.
-const completionTimestamp = (point: RecoveryPoint): string =>
+const completionTimestamp = (point: RecoveryPoint): string | undefined =>
normalizeRecoveryOutcome(point.outcome) === 'running' ? '' : asTrimmedString(point.completedAt);
// Columns a user can sort by. Every protection column carries a scalar: