mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
fix: linked references not refreshed
This commit is contained in:
@@ -234,12 +234,14 @@
|
||||
[:page/mentioned-pages current-page-id]])
|
||||
|
||||
(apply concat
|
||||
(for [{:block/keys [refs]} blocks]
|
||||
(mapcat (fn [ref]
|
||||
(when-let [block (db-utils/entity ref)]
|
||||
[[:page/blocks (:db/id (:block/page block))]
|
||||
[:block/refed-blocks (:db/id block)]]))
|
||||
refs))))
|
||||
(for [{:block/keys [refs]} blocks]
|
||||
(mapcat (fn [ref]
|
||||
(when-let [block (if (and (map? ref) (:block/name ref))
|
||||
(db-utils/entity [:block/name (:block/name ref)])
|
||||
(db-utils/entity ref))]
|
||||
[[:page/blocks (:db/id (:block/page block))]
|
||||
[:block/refed-blocks (:db/id block)]]))
|
||||
refs))))
|
||||
(distinct))
|
||||
refed-pages (map
|
||||
(fn [[k page-id]]
|
||||
|
||||
Reference in New Issue
Block a user