From 3d25b0f62c90c27c25b63bbb6e346590eb6329a9 Mon Sep 17 00:00:00 2001
From: "Mahatthana (Kelvin) Nomsawadi" <mahatthana.n@gmail.com>
Date: Mon, 12 Sep 2022 20:18:37 +0700
Subject: [PATCH] Render text in Slack subscription when there is no result
 (#25336)

* Render text in Slack subscription when there is no result

* Change is correct, just fixing nitpicks

Co-authored-by: Adam James <adam.vermeer2@gmail.com>
---
 src/metabase/pulse/render/body.clj | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/metabase/pulse/render/body.clj b/src/metabase/pulse/render/body.clj
index 9813b1f42d6..8d84ebfba1a 100644
--- a/src/metabase/pulse/render/body.clj
+++ b/src/metabase/pulse/render/body.clj
@@ -878,7 +878,8 @@
                      (style/font-style)
                      {:margin-top :8px
                       :color      style/color-gray-4})}
-       (trs "No results")]]}))
+       (trs "No results")]]
+     :render/text (trs "No results")}))
 
 (s/defmethod render :attached :- common/RenderedPulseCard
   [_ render-type _ _ _ _]
-- 
GitLab