mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Use ternary rather than &&
Use ternary rather than && to avoid display 0.
This commit is contained in:
parent
1ed0b70601
commit
f20cd8c203
@ -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`}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user