mirror of https://github.com/logseq/logseq
fix: disallow property self-refs
Causes wonky linked reference animations and maybe other bugs. Can repro by creating a property url and then adding the :url property as a page property to the url pageexperiment/tanstack-table
parent
74274bfd82
commit
7c0b154fff
|
@ -165,4 +165,7 @@
|
|||
(when-let [id (:db/id (:block/link block))]
|
||||
[id])
|
||||
property-refs content-refs)
|
||||
;; Remove self-ref to avoid recursive bugs
|
||||
(remove #(and (:db/ident block)
|
||||
(= % (:db/ident block))))
|
||||
(remove nil?))))
|
||||
|
|
Loading…
Reference in New Issue