fix: setting block properties with raw value

With this fix able to convert 2 built-ins to :default. Also cleaned
up set-block-property! which had outdated assumptions
This commit is contained in:
Gabriel Horner
2024-05-15 15:40:10 -04:00
parent 2117245b28
commit e50d3eff21
3 changed files with 31 additions and 45 deletions

View File

@@ -211,6 +211,7 @@
(assoc :id (str id)))
properties (wrap-props props)]
(when (string? text)
;; FIXME: Handle properties for db graphs
(editor-handler/api-insert-new-block!
text (merge {:page (:block/name ref-page)
:custom-uuid id