mirror of https://github.com/logseq/logseq
fix: check blocks ids when inserting only if it's not the move op
parent
30d3b6183d
commit
28dfe9759a
|
@ -479,7 +479,8 @@
|
|||
next (if sibling?
|
||||
(tree/-get-right target-node)
|
||||
(tree/-get-down target-node))
|
||||
next-tx (when (and next (not (contains? (set (map :db/id blocks)) (:db/id (:data next)))))
|
||||
next-tx (when (and next
|
||||
(if move? (not (contains? (set (map :db/id blocks)) (:db/id (:data next)))) true))
|
||||
(when-let [left (last (filter (fn [b] (= 1 (:block/level b))) tx))]
|
||||
[{:block/uuid (tree/-get-id next)
|
||||
:block/left (:db/id left)}]))
|
||||
|
|
Loading…
Reference in New Issue