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 (