fix: named blocks and function macro

Had to update properties queries. Also loosened pu/lookup so that
user properties can use it
This commit is contained in:
Gabriel Horner
2023-09-20 16:26:13 -04:00
parent 69f166dab6
commit b2802e9a54
3 changed files with 39 additions and 16 deletions

View File

@@ -11,8 +11,7 @@
[coll key]
(let [repo (state/get-current-repo)]
(if (and (config/db-based-graph? repo)
(keyword? key)
(contains? db-property/built-in-properties-keys key))
(keyword? key))
(when-let [property (db/entity repo [:block/name (gp-util/page-name-sanity-lc (name key))])]
(get coll (:block/uuid property)))
(get coll key))))