enhance: prefer d/entity than d/pull if possible

This commit is contained in:
Tienson Qin
2024-06-13 15:12:59 +08:00
parent 0e87965a10
commit 6dd17c14f5
2 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
[clojure.string :as string]
[frontend.config :as config]
[frontend.db.conn :as conn]
[frontend.db :as db]
[frontend.db.model :as db-model]
[frontend.db.utils :as db-utils]
[frontend.db.async :as db-async]
@@ -243,7 +244,7 @@
(defn open-block-ref!
[block]
(let [id (:block/uuid block)
page (db-utils/pull (:db/id (:block/page block)))
page (db/entity (:db/id (:block/page block)))
page-name (:block/original-name page)
file-path (pu/get-block-property-value block :logseq.property.pdf/file-path)
hl-page (pu/get-block-property-value block :logseq.property.pdf/hl-page)