fix: shape index (#8855)

pull/8869/head
Konstantinos 2023-03-21 13:36:26 +02:00 committed by GitHub
parent 0eab5ebef4
commit 1a6a888aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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))