From f20cd8c2039cd9ce01fb1e0076630d1b77035649 Mon Sep 17 00:00:00 2001 From: nixocio Date: Thu, 17 Feb 2022 15:34:03 -0500 Subject: [PATCH] Use ternary rather than && Use ternary rather than && to avoid display 0. --- .../NotificationTemplateDetail/NotificationTemplateDetail.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateDetail/NotificationTemplateDetail.js b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateDetail/NotificationTemplateDetail.js index 0f1e13376a..4ae70686a0 100644 --- a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateDetail/NotificationTemplateDetail.js +++ b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateDetail/NotificationTemplateDetail.js @@ -109,12 +109,12 @@ function NotificationTemplateDetail({ template, defaultMessages }) { value={template.description} dataCy="nt-detail-description" /> - {summary_fields.recent_notifications.length && ( + {summary_fields.recent_notifications.length ? ( } /> - )} + ) : null} {summary_fields.organization ? (