瀏覽代碼

fix: indent error

Tienson Qin 4 年之前
父節點
當前提交
825c1579b9
共有 1 個文件被更改,包括 6 次插入5 次删除
  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]