Skip to content

Commit

Permalink
fix: history action
Browse files Browse the repository at this point in the history
  • Loading branch information
bepyan committed Aug 17, 2024
1 parent eb14ac1 commit b1a9eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/editor/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit b1a9eb5

Please sign in to comment.