mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
FIX: Linked reference is not refresh after file altering #2694
This commit is contained in:
committed by
Tienson Qin
parent
0550c8a876
commit
1ee0c240c3
@@ -110,11 +110,13 @@
|
||||
(set))
|
||||
keep-block-ref-f (fn [refs]
|
||||
(filter (fn [ref]
|
||||
(when (and (vector? ref)
|
||||
(= :block/uuid (first ref)))
|
||||
(cond
|
||||
(and (vector? ref) (= :block/uuid (first ref)))
|
||||
(let [id (second ref)]
|
||||
(or (contains? block-ids id)
|
||||
(db/entity [:block/uuid id]))))) refs))]
|
||||
(db/entity [:block/uuid id])))
|
||||
(and (map? ref) (contains? ref :block/journal?))
|
||||
(db/entity [:block/name (ref :block/name)]))) refs))]
|
||||
(map (fn [item]
|
||||
(update item :block/refs keep-block-ref-f))
|
||||
data)))
|
||||
|
||||
Reference in New Issue
Block a user