Browse Source

Removing nil orphans

Stian Haklev 3 years ago
parent
commit
c66071517f
1 changed files with 2 additions and 1 deletions
  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!