Merge pull request #11776 from nixocio/ui_ternary

Use ternary rather than &&
This commit is contained in:
Kersom
2022-02-17 18:24:09 -05:00
committed by GitHub

View File

@@ -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 ? (
<Detail
label={t`Status`}
value={<StatusLabel status={testStatus} />}
/>
)}
) : null}
{summary_fields.organization ? (
<Detail
label={t`Organization`}