mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
Prefer to use ldb/{type}? check when possible
This commit is contained in:
@@ -223,11 +223,11 @@
|
||||
(let [entity (db/entity [:block/uuid (:block/uuid page)])
|
||||
source-page (model/get-alias-source-page repo (:db/id entity))
|
||||
icon (cond
|
||||
(ldb/class? entity)
|
||||
(ldb/tag? entity)
|
||||
"hash"
|
||||
(ldb/property? entity)
|
||||
"letter-p"
|
||||
(ldb/whiteboard-page? entity)
|
||||
(ldb/whiteboard? entity)
|
||||
"whiteboard"
|
||||
:else
|
||||
"page")]
|
||||
|
||||
Reference in New Issue
Block a user