Skip to content

Commit

Permalink
fix: empty block references in the right sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Nov 17, 2021
1 parent 3440f85 commit f990e3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/frontend/db/model.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1106,8 +1106,9 @@

(defn get-referenced-blocks-ids
[page-name-or-block-uuid]
(if (uuid? page-name-or-block-uuid)
(get-block-referenced-blocks-ids page-name-or-block-uuid)
(if (util/uuid-string? (str page-name-or-block-uuid))
(let [id (uuid page-name-or-block-uuid)]
(get-block-referenced-blocks-ids id))
(get-page-referenced-blocks-ids page-name-or-block-uuid)))

(defn get-matched-blocks
Expand Down

0 comments on commit f990e3f

Please sign in to comment.