Przeglądaj źródła

fix: logical outdent blocks

Tienson Qin 3 lat temu
rodzic
commit
2432947607
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/main/frontend/db/model.cljs

+ 3 - 1
src/main/frontend/db/model.cljs

@@ -666,7 +666,9 @@
         cached-ids-set (set (conj cached-ids page-id))
         first-changed-id (cond
                            (= (:real-outliner-op tx-meta) :indent-outdent)
-                           (last (:move-blocks tx-meta))
+                           (if (state/logical-outdenting?)
+                             (first (:move-blocks tx-meta))
+                             (last (:move-blocks tx-meta)))
 
                            (= outliner-op :move-blocks)
                            (let [{:keys [move-blocks target from-page to-page]} tx-meta]