Skip to content

Commit

Permalink
fix cut block then undo then paste will conflict upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
megayu authored and tiensonqin committed Jul 5, 2023
1 parent 70c9bb1 commit 3127ea1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/frontend/handler/history.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
(util/stop e)
(state/set-editor-op! :undo)
(state/clear-editor-action!)
(state/set-block-op-type! nil)
(state/set-state! [:editor/last-replace-ref-content-tx (state/get-current-repo)] nil)
(editor/save-current-block!)
(let [{:keys [editor-cursor app-state]} (undo-redo/undo)]
(restore-cursor! editor-cursor)
Expand Down

0 comments on commit 3127ea1

Please sign in to comment.