fix: property refs not deleted when block property deleted

Fixes https://github.com/logseq/db-test-cn/issues/36. Also fixes private
db-property-attributes leaking into refs caused by #11565
This commit is contained in:
Gabriel Horner
2024-11-15 11:49:45 -05:00
parent 4765b4ab7e
commit 2c23731b5d
4 changed files with 15 additions and 9 deletions

View File

@@ -375,7 +375,6 @@
(->> ents
(map (fn [m]
(let [props (->> (db-property/properties m)
(remove #(db-property/private-db-attribute-properties (key %)))
(into {}))]
(cond-> (select-keys m [:block/name :block/type :block/title :block/schema :db/ident
:logseq.property.class/properties :logseq.property/parent