mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
fix: can't collapse a block with body
This commit is contained in:
@@ -3307,7 +3307,7 @@
|
||||
(map (fn [x] (dissoc x :block/children))))))
|
||||
|
||||
(defn collapsable? [block-id]
|
||||
(if-let [block (db-model/get-block-by-uuid block-id)]
|
||||
(if-let [block (db-model/query-block-by-uuid block-id)]
|
||||
(let [block (block/parse-title-and-body block)]
|
||||
(and
|
||||
(nil? (-> block :block/properties :collapsed))
|
||||
|
||||
Reference in New Issue
Block a user