fix: new graphs don't create unused hidden pages for

date and page closed properties. Observed with properties graph
This commit is contained in:
Gabriel Horner
2024-04-09 14:53:47 -04:00
parent c29d4a3a70
commit a42e5f659a
2 changed files with 26 additions and 20 deletions

View File

@@ -178,7 +178,7 @@
prop-name
(assoc (get properties prop-name) :db/ident db-ident)
{:translate-closed-page-value-fn
#(hash-map :block/uuid (translate-property-value (:value %) uuid-maps))
#(translate-property-value (:value %) uuid-maps)
:property-attributes
{:db/id (or (property-db-ids (name prop-name))
(throw (ex-info "No :db/id for property" {:property prop-name})))}}))