fix: add block's page to :block/path-refs

This commit is contained in:
Tienson Qin
2021-06-03 08:05:47 +08:00
parent b8a8247d59
commit dcba8791ce
3 changed files with 6 additions and 3 deletions

View File

@@ -1980,7 +1980,9 @@
exclude-properties))
:block/meta (dissoc (:block/meta block) :start-pos :end-pos)
:block/content new-content
:block/title new-title})]
:block/title new-title
:block/path-refs (->> (cons (:db/id page) (:block/path-refs block))
(remove nil?))})]
(if file
(assoc m :block/file (select-keys file [:db/id]))
m)))))