mirror of https://github.com/logseq/logseq
fix: block back ref uuid
parent
30b254ab47
commit
4f2626e297
|
@ -180,7 +180,9 @@
|
||||||
|
|
||||||
(defn get-shape-refs [shape]
|
(defn get-shape-refs [shape]
|
||||||
(when (= "logseq-portal" (:type 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
|
(defn- with-whiteboard-block-refs
|
||||||
[shape]
|
[shape]
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
(defn ->logseq-portal-shape
|
(defn ->logseq-portal-shape
|
||||||
[block-id point]
|
[block-id point]
|
||||||
{:blockType "B"
|
{:blockType "B"
|
||||||
:id (d/squuid)
|
:id (str (d/squuid))
|
||||||
:pageId (str block-id)
|
:pageId (str block-id)
|
||||||
:point point
|
:point point
|
||||||
:size [600, 400]
|
:size [600, 400]
|
||||||
|
|
Loading…
Reference in New Issue