1
0
Tienson Qin 3 жил өмнө
parent
commit
130728adcd

+ 5 - 5
src/main/frontend/handler/dnd.cljs

@@ -27,14 +27,14 @@
 
       (and (= move-to :nested)
            ;; current block is already the first child of target-block
-           (and (= (:db/id (:block/left current-block))
-                   (:db/id (:block/parent current-block))
-                   (:db/id target-block))))
+           (= (:db/id (:block/left current-block))
+              (:db/id (:block/parent current-block))
+              (:db/id target-block)))
 
       (and (= move-to :sibling)
            ;; current block is already the next sibling of target-block
-           (and (= (:db/id (:block/left current-block))
-                   (:db/id target-block))))))))
+           (= (:db/id (:block/left current-block))
+              (:db/id target-block)))))))
 
 (defn move-block
   "There can be two possible situations: