fix: display tags for pages in cmdk

This commit is contained in:
Tienson Qin
2024-07-26 12:17:47 +08:00
parent 00aba68d21
commit 3799ddd5f4
3 changed files with 13 additions and 4 deletions

View File

@@ -223,7 +223,13 @@
source-page (model/get-alias-source-page repo (:db/id entity))]
(hash-map :icon (if whiteboard? "whiteboard" "page")
:icon-theme :gray
:text (:block/title page)
:text (str (:block/title page)
" "
(string/join
", "
(keep (fn [tag]
(str "#" (:block/title tag)))
(:block/tags entity))))
:source-page (if source-page
(:block/title source-page)
(:block/title page)))))