Selaa lähdekoodia

fix: indent error

Tienson Qin 4 vuotta sitten
vanhempi
sitoutus
825c1579b9
1 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  1. 6 5
      src/main/frontend/modules/outliner/tree.cljs

+ 6 - 5
src/main/frontend/modules/outliner/tree.cljs

@@ -43,11 +43,12 @@
 
 (defn- blocks->vec-tree-aux
   [blocks root]
-  (some->>
-   (get-children blocks root)
-   (map (fn [block]
-          (let [children (blocks->vec-tree-aux blocks block)]
-            (with-children-and-refs block children))))))
+  (let [root {:db/id (:db/id root)}]
+    (some->>
+     (get-children blocks root)
+     (map (fn [block]
+            (let [children (blocks->vec-tree-aux blocks block)]
+              (with-children-and-refs block children)))))))
 
 (defn- get-root-and-page
   [root-id]