소스 검색

fix cut block then undo then paste will conflict upsert

Mega Yu 2 년 전
부모
커밋
3127ea1b6a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/main/frontend/handler/history.cljs

+ 2 - 0
src/main/frontend/handler/history.cljs

@@ -42,6 +42,8 @@
   (util/stop e)
   (util/stop e)
   (state/set-editor-op! :undo)
   (state/set-editor-op! :undo)
   (state/clear-editor-action!)
   (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!)
   (editor/save-current-block!)
   (let [{:keys [editor-cursor app-state]} (undo-redo/undo)]
   (let [{:keys [editor-cursor app-state]} (undo-redo/undo)]
     (restore-cursor! editor-cursor)
     (restore-cursor! editor-cursor)