fix(history): number records oldest=1, newest=N

This commit is contained in:
Christian Vidal Wolf
2026-05-14 18:37:07 +02:00
parent ca8a98c6c2
commit 7dd899dae6
+1 -1
View File
@@ -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 (
<div key={entry.id} className={cn(