mirror of
https://github.com/logseq/logseq.git
synced 2026-05-17 09:22:21 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user