wip: use :block/tags to represent block types

This commit is contained in:
Tienson Qin
2024-12-01 10:59:11 +08:00
parent 7c2d17ec16
commit 9e10dc1737
22 changed files with 181 additions and 148 deletions

View File

@@ -323,7 +323,7 @@
(or (some->> (name property-name)
(db-utils/q '[:find [(pull ?b [:db/ident]) ...]
:in $ ?title
:where [?b :block/type "property"] [?b :block/title ?title]])
:where [?b :block/tags :logseq.class/Property] [?b :block/title ?title]])
first
:db/ident)
;; Don't return nil as that incorrectly matches all properties