Skip to content

Commit

Permalink
revert some merge conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
llcc committed Mar 16, 2022
1 parent b322aee commit a1e845b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2783,16 +2783,11 @@

["Custom" "query" _options _result content]
(try
(let [query (reader/read-string content)
query (if (string? query)
(string/trim query)
query)]
(let [query (reader/read-string content)]
(custom-query config query))
(catch js/Error e
(println "read-string error:")
(js/console.error e)
[:div.warning {:title "Invalid query"}
content]))
(catch :default e
(log/error :read-string-error e)
(ui/block-error "Invalid query:" {:content content})))

["Custom" "note" _options result _content]
(admonition config "note" result)
Expand Down

0 comments on commit a1e845b

Please sign in to comment.