fix(references): block references crash (#6061)

* fix  #6057

* clear extra files

* format

* refactor

* use multi arity to simplify
This commit is contained in:
sawhney17
2022-07-18 18:16:24 +04:00
committed by GitHub
parent 04ea801c12
commit dc380ad64d

View File

@@ -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])