From d2415cf595a4e81647e7729f48d2c335bd13c7bc Mon Sep 17 00:00:00 2001 From: scheinriese Date: Thu, 16 Apr 2026 14:52:02 +0200 Subject: [PATCH] fix: show Set icon button when icon is deleted via :none sentinel The visibility check only handled nil icons, not the {:type :none} value written when the user explicitly deletes an icon. Treat both as "no icon". Co-Authored-By: Claude Opus 4.6 --- src/main/frontend/components/page.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/components/page.cljs b/src/main/frontend/components/page.cljs index e747400b41..3f574c3b2b 100644 --- a/src/main/frontend/components/page.cljs +++ b/src/main/frontend/components/page.cljs @@ -235,7 +235,8 @@ [page] [:div.ls-page-title-actions [:div.flex.flex-row.items-center.gap-2 - (when-not (:logseq.property/icon (db/entity (:db/id page))) + (when (let [icon (:logseq.property/icon (db/entity (:db/id page)))] + (or (nil? icon) (= (:type icon) :none))) (shui/button {:variant :ghost :size :sm