diff --git a/deps/graph-parser/src/logseq/graph_parser/whiteboard.cljs b/deps/graph-parser/src/logseq/graph_parser/whiteboard.cljs index 644ebab12c6..d2d8ed2c9ea 100644 --- a/deps/graph-parser/src/logseq/graph_parser/whiteboard.cljs +++ b/deps/graph-parser/src/logseq/graph_parser/whiteboard.cljs @@ -49,9 +49,10 @@ {:block/uuid (uuid (:pageId shape))})])) (defn- with-whiteboard-block-refs - [shape] + [shape page-name] (let [refs (or (get-shape-refs shape) [])] - (merge {:block/refs refs}))) + (merge {:block/refs refs + :block/path-refs (conj refs {:block/name page-name})}))) (defn- with-whiteboard-content "Main purpose of this function is to populate contents when shapes are used as references in outliner." @@ -72,7 +73,7 @@ (merge (if shape? (merge {:block/uuid (uuid (:id shape))} - (with-whiteboard-block-refs shape) + (with-whiteboard-block-refs shape page-name) (with-whiteboard-content shape)) ;; TODO: remove?