fix: page icon

pull/10438/head
Tienson Qin 2023-10-09 14:48:39 +08:00
parent 0dc941f1c5
commit d9f59f863d
1 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@
[frontend.components.theme :as theme]
[frontend.components.widgets :as widgets]
[frontend.components.dnd :as dnd-component]
[frontend.components.icon :as icon]
[frontend.config :as config]
[frontend.context.i18n :refer [t]]
[frontend.db :as db]
@ -92,7 +93,8 @@
(let [default-icon (ui/icon "page" {:extension? true})
page-icon (pu/get-property page-entity :icon)]
(or
(when-not (string/blank? page-icon) page-icon)
(when-not (string/blank? page-icon)
(icon/icon page-icon))
default-icon))) ;; Fall back to default if icon is undefined or empty
(rum/defc favorites < rum/reactive