fix: show page title without parent in cmdk result

Its parent will be included in the breadcrumb.
This commit is contained in:
Tienson Qin
2025-06-16 21:23:38 +08:00
parent 3fc6710f06
commit 9ea07091d9

View File

@@ -295,7 +295,7 @@
source-page (or (model/get-alias-source-page repo (:db/id entity))
(:alias page))
icon (get-page-icon entity)
title (block-handler/block-unique-title page)
title (block-handler/block-unique-title (or entity page))
title' (if source-page (str title " -> alias: " (:block/title source-page)) title)]
(hash-map :icon icon
:icon-theme :gray