|
@@ -449,8 +449,8 @@
|
|
|
block (db/pull [:block/uuid (:block/uuid block)])]
|
|
block (db/pull [:block/uuid (:block/uuid block)])]
|
|
|
(when block
|
|
(when block
|
|
|
(let [content (string/replace (:block/content block)
|
|
(let [content (string/replace (:block/content block)
|
|
|
- (util/format "{{query %s" q-str)
|
|
|
|
|
- (util/format "{{query %s" q))]
|
|
|
|
|
|
|
+ #"\{\{query[^}]+\}\}"
|
|
|
|
|
+ (util/format "{{query %s}}" q))]
|
|
|
(editor-handler/save-block! repo (:block/uuid block) content)))))))
|
|
(editor-handler/save-block! repo (:block/uuid block) content)))))))
|
|
|
(assoc state ::tree *tree)))
|
|
(assoc state ::tree *tree)))
|
|
|
:will-mount (fn [state]
|
|
:will-mount (fn [state]
|