mirror of
https://github.com/logseq/logseq.git
synced 2026-05-18 01:42:19 +00:00
fix(references): block references crash (#6061)
* fix #6057 * clear extra files * format * refactor * use multi arity to simplify
This commit is contained in:
@@ -1251,7 +1251,9 @@
|
||||
;; TODO: Replace recursive queries with datoms index implementation
|
||||
;; see https://github.com/tonsky/datascript/issues/130#issuecomment-169520434
|
||||
(defn get-block-referenced-blocks
|
||||
([block-uuid & options]
|
||||
([block-uuid]
|
||||
(get-block-referenced-blocks block-uuid {:filter? false}))
|
||||
([block-uuid options]
|
||||
(when-let [repo (state/get-current-repo)]
|
||||
(when (conn/get-db repo)
|
||||
(let [block (db-utils/entity [:block/uuid block-uuid])
|
||||
|
||||
Reference in New Issue
Block a user