Prefer to use ldb/{type}? check when possible

This commit is contained in:
Tienson Qin
2024-08-05 17:51:24 +08:00
parent 0a9320c234
commit 411b05e7ba
36 changed files with 131 additions and 126 deletions

View File

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