浏览代码

Removing nil orphans

Stian Haklev 3 年之前
父节点
当前提交
c66071517f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/frontend/db/model.cljs

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

@@ -1522,7 +1522,8 @@
                                            (not (:block/journal? page))))
                                  page))))
                           pages)
-                        (remove false?))]
+                        (remove false?)
+                        (remove nil?))]
     orphaned-pages))
 
 (defn remove-orphaned-pages!