fix: new graph should be valid

closed values were invalid. Also fixed a couple db tests
This commit is contained in:
Gabriel Horner
2024-04-01 16:40:01 -04:00
parent 0c8639994d
commit c4fc3a193e
5 changed files with 21 additions and 18 deletions

View File

@@ -172,10 +172,10 @@
(fn [[prop-name]]
(if (get-in properties [prop-name :closed-values])
(db-property-util/build-closed-values
(keyword "user.property" (name prop-name))
prop-name
(get properties prop-name)
{:db-ident (keyword "user.property" (name prop-name))
:icon-id
{:icon-id
(get-in options [:property-uuids :icon])
:translate-closed-page-value-fn
#(hash-map :block/uuid (translate-property-value (:value %) uuid-maps))