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

@@ -609,7 +609,7 @@
(map :db/id))
{:block/keys [refs]} new-block
ref-pages (filter :block/name refs)
path-ref-pages (concat ref-pages parent-refs)
path-ref-pages (concat ref-pages parent-refs [(:db/id page)])
block (merge
block
new-block