Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: resolves incorrect duration value in plan stats for pending backups

towfiqif8b0f6903ab6
diff --git a/frontend/src/components/Plan/PlanHistory/PlanHistory.tsx b/frontend/src/components/Plan/PlanHistory/PlanHistory.tsx
index 32175c7..0e6e920 100644
--- a/frontend/src/components/Plan/PlanHistory/PlanHistory.tsx
+++ b/frontend/src/components/Plan/PlanHistory/PlanHistory.tsx
@@ -52,7 +52,7 @@ const PlanHistory = ({ planId, history, itemsCount = 10 }: PlanHistoryProps) =>
<div><b>Changes</b>: ${backupChanges(h.changes)}</div>
<div><b>Started</b>: ${formatDateTime(h.started)}</div>
<div><b>Ended</b>: ${h.ended ? formatDateTime(h.ended) : ' - '}</div>
- <div><b>Duration</b>: ${duration ? formatDuration(duration) : '0ms'} </div>
+ <div><b>Duration</b>: ${h.status !== 'started' && duration ? formatDuration(duration) : '-'} </div>
`}
data-tooltip-place="top"
></div>