fix: toggle Properties twice without reload doesn't work

fixes https://github.com/logseq/db-test/issues/8
pull/11483/head
Tienson Qin 2024-08-16 09:53:45 +08:00
parent 138900ccad
commit 7971b0cc21
1 changed files with 5 additions and 4 deletions

View File

@ -501,10 +501,11 @@
(defn toggle-properties!
[page-entity]
(let [e (db/entity (:db/id page-entity))]
(property-handler/set-block-property! (state/get-current-repo)
(:block/uuid page-entity)
:logseq.property/hide-properties?
(not (:logseq.property/hide-properties? page-entity))))
(not (:logseq.property/hide-properties? e)))))
(defn convert-to-tag!
[page-entity]