mirror of https://github.com/logseq/logseq
fix(whiteboard): persisting whiteboard block collapsed state
parent
90150197f8
commit
afd7c1b0f0
|
@ -222,11 +222,11 @@
|
|||
(let [_ (when verbose (println "Parsing start: " file))
|
||||
{:keys [pages blocks]} (gp-util/safe-read-string content)
|
||||
blocks (map
|
||||
(fn [block]
|
||||
(-> block
|
||||
(gp-util/dissoc-in [:block/parent :block/name])
|
||||
(gp-util/dissoc-in [:block/left :block/name])))
|
||||
blocks)
|
||||
(fn [block]
|
||||
(-> block
|
||||
(gp-util/dissoc-in [:block/parent :block/name])
|
||||
(gp-util/dissoc-in [:block/left :block/name])))
|
||||
blocks)
|
||||
serialized-page (first pages)
|
||||
;; whiteboard edn file should normally have valid :block/original-name, :block/name, :block/uuid
|
||||
page-name (-> (or (:block/name serialized-page)
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
:block/format
|
||||
:block/created-at
|
||||
:block/updated-at
|
||||
:block/collapsed?
|
||||
{:block/page [:block/uuid]}
|
||||
{:block/left [:block/uuid]}
|
||||
{:block/parent [:block/uuid]}])
|
||||
|
@ -33,6 +34,7 @@
|
|||
(dissoc block
|
||||
:db/id
|
||||
:block/uuid ;; shape block uuid is read from properties
|
||||
:block/collapsed?
|
||||
:block/content
|
||||
:block/format
|
||||
:block/left
|
||||
|
|
Loading…
Reference in New Issue