From 24c4973bc22e322e25026e78e8b3f7abe9512900 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Sat, 23 Apr 2022 19:49:39 +0800 Subject: [PATCH] fix: simple query title issue --- src/main/frontend/components/block.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/frontend/components/block.cljs b/src/main/frontend/components/block.cljs index e2aacfaf25..4d6041e25a 100644 --- a/src/main/frontend/components/block.cljs +++ b/src/main/frontend/components/block.cljs @@ -2559,11 +2559,12 @@ (when-not (and built-in? (empty? result)) (ui/foldable [:div.custom-query-title - [:span.title-text (if (vector? title) - title - (inline-text config - (get-in config [:block :block/format] :markdown) - (str title)))] + [:span.title-text (cond + (vector? title) title + (string? title) (inline-text config + (get-in config [:block :block/format] :markdown) + title) + :else title)] [:span.opacity-60.text-sm.ml-2.results-count (str (count transformed-query-result) " results")]] (fn []