From b1a9eb5f71801eda012779b6117365a7746066e3 Mon Sep 17 00:00:00 2001 From: bepyan Date: Sun, 18 Aug 2024 04:27:56 +0900 Subject: [PATCH] fix: history action --- src/components/editor/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/editor/action.ts b/src/components/editor/action.ts index 00cac46..7762ac9 100644 --- a/src/components/editor/action.ts +++ b/src/components/editor/action.ts @@ -77,7 +77,7 @@ const updateEditorHistory = ( ...editor.history, list: [ ...editor.history.list.slice(0, editor.history.currentIndex + 1), - { ...newData }, + [...newData], ], currentIndex: editor.history.currentIndex + 1, },