mirror of https://github.com/logseq/logseq
fix: shape index (#8855)
parent
0eab5ebef4
commit
1a6a888aa5
|
@ -47,9 +47,9 @@
|
||||||
(->> blocks
|
(->> blocks
|
||||||
(map (fn [block]
|
(map (fn [block]
|
||||||
(assoc block :index (get shape-id->index (str (:block/uuid block)) 0))))
|
(assoc block :index (get shape-id->index (str (:block/uuid block)) 0))))
|
||||||
(sort-by :index)
|
|
||||||
(filter gp-whiteboard/shape-block?)
|
(filter gp-whiteboard/shape-block?)
|
||||||
(map gp-whiteboard/block->shape))))
|
(map gp-whiteboard/block->shape)
|
||||||
|
(sort-by :index))))
|
||||||
|
|
||||||
(defn- whiteboard-clj->tldr [page-block blocks]
|
(defn- whiteboard-clj->tldr [page-block blocks]
|
||||||
(let [id (str (:block/uuid page-block))
|
(let [id (str (:block/uuid page-block))
|
||||||
|
|
Loading…
Reference in New Issue