fix(ux): sometimes the block children can't be collapsed

experiment/tanstack-table
charlie 2024-06-17 17:54:19 +08:00
parent 5b6e37a9f3
commit 5b0ed592f0
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@
;; delete heading property for db-based-graphs
(when (and db-based? (integer? (:logseq.property/heading block-entity))
(not (string/starts-with? (:block/content m) "#")))
(not (some-> (:block/content data) (string/starts-with? "#"))))
(swap! txs-state (fn [txs] (conj (vec txs) [:db/retract (:db/id block-entity) :logseq.property/heading]))))
this))