From dc380ad64df55d65ca57aed9d147bfe293d8f5c8 Mon Sep 17 00:00:00 2001 From: sawhney17 <80150109+sawhney17@users.noreply.github.com> Date: Mon, 18 Jul 2022 18:16:24 +0400 Subject: [PATCH] fix(references): block references crash (#6061) * fix #6057 * clear extra files * format * refactor * use multi arity to simplify --- src/main/frontend/db/model.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/db/model.cljs b/src/main/frontend/db/model.cljs index 668a4d2998..ad8fca2f48 100644 --- a/src/main/frontend/db/model.cljs +++ b/src/main/frontend/db/model.cljs @@ -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])