Przeglądaj źródła

fix cut block then undo then paste will conflict upsert

Mega Yu 2 lat temu
rodzic
commit
3127ea1b6a
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/main/frontend/handler/history.cljs

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

@@ -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)