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 page
experiment/tanstack-table
Gabriel Horner 2024-05-24 14:03:14 -04:00
parent 74274bfd82
commit 7c0b154fff
1 changed files with 3 additions and 0 deletions

View File

@ -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?))))