fix: click can't create block reference

Resolved #1337
This commit is contained in:
Tienson Qin
2021-02-21 22:16:21 +08:00
parent fdd1538820
commit b9fd0ef7ab
2 changed files with 3 additions and 5 deletions

View File

@@ -1776,7 +1776,7 @@
99)
(map (comp str :block/uuid))))
current-and-parents (set/union #{(str (:block/uuid current-block))} block-parents)]
(p/let [result (search/block-search q 10)]
(let [result (search/block-search q 10)]
(remove
(fn [h]
(contains? current-and-parents (:block/uuid h)))