mirror of https://github.com/logseq/logseq
Merge branch 'feat/db' of https://github.com/logseq/logseq into feat/db
commit
58167f0bc4
|
@ -94,11 +94,14 @@
|
|||
|
||||
(defn- rename-update-block-refs!
|
||||
[refs from-id to-id]
|
||||
(->> refs
|
||||
(remove #{{:db/id from-id}})
|
||||
(cons {:db/id to-id})
|
||||
(distinct)
|
||||
(vec)))
|
||||
(if to-id
|
||||
(->> refs
|
||||
(remove #{{:db/id from-id}})
|
||||
(cons {:db/id to-id})
|
||||
(distinct)
|
||||
(vec))
|
||||
;; New page not exists so that we keep using the old page's block as a ref
|
||||
refs))
|
||||
|
||||
(defn replace-page-ref
|
||||
"Unsanitized only"
|
||||
|
|
Loading…
Reference in New Issue