Skip to content

Commit

Permalink
fix: linked References Filter Empty
Browse files Browse the repository at this point in the history
close #7788
  • Loading branch information
tiensonqin committed Dec 20, 2022
1 parent 5421370 commit 3f01f66
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/frontend/db/model.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1231,10 +1231,17 @@ independent of format as format specific heading characters are stripped"
{:use-cache? false
:query-fn (fn []
(let [entities (mapcat (fn [id]
(:block/_path-refs (db-utils/entity id))) pages)]
(db-utils/pull-many '[*] (map :db/id entities))))}
(:block/_path-refs (db-utils/entity id))) pages)
blocks (map (fn [e]
{:block/parent (:block/parent e)
:block/left (:block/left e)
:block/page (:block/page e)
:block/collapsed? (:block/collapsed? e)}) entities)]
{:entities entities
:blocks blocks}))}
nil)
react
:entities
(remove (fn [block] (= page-id (:db/id (:block/page block)))))))))))

(defn get-date-scheduled-or-deadlines
Expand Down

0 comments on commit 3f01f66

Please sign in to comment.