fixes https://linear.app/logseq/issue/LOG-3258/schema-graph-cant-create-a-node-property-value-because-of-call-stack. Datascript doesn't support transacting entities yet.
@@ -26,9 +26,16 @@
(update :block/tags
(fnil into [])
(mapv (fn [tag]
- (if (uuid? tag)
- (d/entity @conn [:block/uuid tag])
- tag))
+ (let [v (if (uuid? tag)
+ (d/entity @conn [:block/uuid tag])
+ tag)]
+ (cond
+ (de/entity? v)
+ (:db/id v)
+ (map? v)
+ :else
+ v)))
tags)))
property-vals-tx-m
;; Builds property values for built-in properties like logseq.property.pdf/file