fix: block back ref uuid

pull/6345/head
Peng Xiao 2022-07-23 22:32:07 +08:00
parent 30b254ab47
commit 4f2626e297
2 changed files with 4 additions and 2 deletions

View File

@ -180,7 +180,9 @@
(defn get-shape-refs [shape]
(when (= "logseq-portal" (:type shape))
[{:block/name (:pageId shape)}]))
[(if (= (:blockType shape) "P")
{:block/name (:pageId shape)}
{:block/uuid (uuid (:pageId shape))})]))
(defn- with-whiteboard-block-refs
[shape]

View File

@ -124,7 +124,7 @@
(defn ->logseq-portal-shape
[block-id point]
{:blockType "B"
:id (d/squuid)
:id (str (d/squuid))
:pageId (str block-id)
:point point
:size [600, 400]