Explorar o código

fix(ui): toggle number children only for the immediate level

charlie %!s(int64=2) %!d(string=hai) anos
pai
achega
a2052f8f0b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/handler/events.cljs

+ 1 - 1
src/main/frontend/handler/events.cljs

@@ -965,7 +965,7 @@
     (editor-handler/remove-block-own-order-list-type! block)))
 
 (defmethod handle :editor/toggle-children-number-list [[_ block]]
-  (when-let [blocks (and block (db-model/get-block-children (state/get-current-repo) (:block/uuid block)))]
+  (when-let [blocks (and block (db-model/get-block-immediate-children (state/get-current-repo) (:block/uuid block)))]
     (editor-handler/toggle-blocks-as-own-order-list! blocks)))
 
 (defn run!