perf: no need to clear-edit! when editing new block

This commit is contained in:
Tienson Qin
2024-06-19 03:40:08 +08:00
parent 02160042fb
commit d08102444d
3 changed files with 4 additions and 8 deletions

View File

@@ -173,8 +173,6 @@
(defn- edit-block-aux
[repo block content text-range {:keys [container-id]}]
(when block
(when (not= (:db/id block) (:db/id (state/get-edit-block)))
(state/clear-edit!))
(let [container-id (or container-id
(state/get-current-editor-container-id)
:unknown-container)]