fix: add pre-configured properties when creating a new db graph

This commit is contained in:
Tienson Qin
2023-08-02 01:49:23 +08:00
parent 791bd90d88
commit 15cb78fbf7
10 changed files with 108 additions and 39 deletions

View File

@@ -12,7 +12,7 @@
(let [repo (state/get-current-repo)]
(if (and (config/db-based-graph? repo)
(keyword? key)
(contains? (gp-property/full-built-in-properties) key))
(contains? gp-property/db-built-in-properties-keys 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))))