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
commit b7d0ec53e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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`}