diff --git a/src/components/blog/TextEditor.tsx b/src/components/blog/TextEditor.tsx
index 1911b0c..5bd17a8 100644
--- a/src/components/blog/TextEditor.tsx
+++ b/src/components/blog/TextEditor.tsx
@@ -3880,9 +3880,10 @@ export default function TextEditor(props: TextEditorProps) {
}
>
-
+
{(node, index) => {
- const isCurrent = index() === currentHistoryIndex();
+ const correctIndex = history().length - 1 - index(); // Reverse index
+ const isCurrent = correctIndex === currentHistoryIndex();
return (
restoreHistory(index())}
+ onClick={() => restoreHistory(correctIndex)}
>