From 7dd899dae6fbf764b6406fba5d8dd5e22488e60a Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Thu, 14 May 2026 18:37:07 +0200 Subject: [PATCH] fix(history): number records oldest=1, newest=N --- src/components/HistoryView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HistoryView.tsx b/src/components/HistoryView.tsx index 025a331..5b40d71 100644 --- a/src/components/HistoryView.tsx +++ b/src/components/HistoryView.tsx @@ -168,7 +168,7 @@ export function HistoryView({ headers, data, onRevert, onEdit }: HistoryViewProp {filteredHistory.map((entry, filteredIdx) => { const isExpanded = expandedId === entry.id; const changes = getChangedFields(entry.old_data, entry.new_data); - const globalNumber = history.indexOf(entry) + 1; + const globalNumber = history.length - history.indexOf(entry); return (