fix: remove debug

pull/9269/head
charlie 2023-04-25 19:00:29 +08:00
parent 7b4349aed9
commit 0eca6c6dbb
1 changed files with 3 additions and 6 deletions

View File

@ -540,8 +540,7 @@
:keep-uuid? keep-uuid? :keep-uuid? keep-uuid?
:move? move? :move? move?
:outliner-op outliner-op} :outliner-op outliner-op}
tx (insert-blocks-aux blocks' target-block' insert-opts) tx (insert-blocks-aux blocks' target-block' insert-opts)]
_ (prn "====>>> op:insert-blocks tx#" tx)]
(if (some (fn [b] (or (nil? (:block/parent b)) (nil? (:block/left b)))) tx) (if (some (fn [b] (or (nil? (:block/parent b)) (nil? (:block/left b)))) tx)
(do (do
(state/pub-event! [:capture-error {:error "Outliner invalid structure" (state/pub-event! [:capture-error {:error "Outliner invalid structure"
@ -573,10 +572,8 @@
full-tx (util/concat-without-nil uuids-tx tx next-tx)] full-tx (util/concat-without-nil uuids-tx tx next-tx)]
(when (and replace-empty-target? (state/editing?)) (when (and replace-empty-target? (state/editing?))
(state/set-edit-content! (state/get-edit-input-id) (:block/content (first blocks)))) (state/set-edit-content! (state/get-edit-input-id) (:block/content (first blocks))))
(let [output {:tx-data full-tx {:tx-data full-tx
:blocks tx}] :blocks tx}))))
(prn "==>>> op:insert-blocks full-tx#" output)
output)))))
(defn- build-move-blocks-next-tx (defn- build-move-blocks-next-tx
[blocks non-consecutive-blocks?] [blocks non-consecutive-blocks?]