mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 06:04:23 +00:00
fix: don't prompt user to break :logseq.class/Tag
On Parent page user could break #Tag
This commit is contained in:
@@ -1267,10 +1267,11 @@
|
||||
(or (= (:db/id v) (:db/id block))
|
||||
;; property value self embedded
|
||||
(= (:db/id (:block/link v)) (:db/id block))))]
|
||||
(if (or (and (de/entity? v) (self-value-or-embedded? v))
|
||||
(and (coll? v) (every? de/entity? v)
|
||||
(some self-value-or-embedded? v))
|
||||
(and (= p-block (:db/id block)) (= p-property (:db/id property))))
|
||||
(if (and (or (and (de/entity? v) (self-value-or-embedded? v))
|
||||
(and (coll? v) (every? de/entity? v)
|
||||
(some self-value-or-embedded? v))
|
||||
(and (= p-block (:db/id block)) (= p-property (:db/id property))))
|
||||
(not= :logseq.class/Tag (:db/ident block)))
|
||||
[:div.flex.flex-row.items-center.gap-1
|
||||
[:div.warning "Self reference"]
|
||||
(shui/button {:variant :outline
|
||||
|
||||
Reference in New Issue
Block a user