fix: whiteboard block left index on reindex

This commit is contained in:
Peng Xiao
2022-08-31 10:43:11 +08:00
parent 89c6f17283
commit 94e5c9d1a3
2 changed files with 3 additions and 1 deletions

View File

@@ -189,6 +189,7 @@
(remove model/whiteboard-shape? blocks)))
(defn- get-last-root-block
"Get the last root Logseq block in the page. Main purpose is to calculate the new :block/left id"
[page-name]
(let [page-id (:db/id (model/get-page page-name))
blocks (get-whiteboard-blocks page-name)