From 2a7b83c8aa40bb381287f45c1514d60adcda0e02 Mon Sep 17 00:00:00 2001 From: Mike Ball Date: Wed, 23 Feb 2022 15:27:59 -0500 Subject: [PATCH] simplify component rendering logic Per feedback here: https://github.com/backstage/backstage/pull/9635#discussion_r813156878 Signed-off-by: Mike Ball --- .../src/components/Incident/IncidentListItem.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx b/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx index 8078f07fc7..d8b6a56efc 100644 --- a/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx +++ b/plugins/splunk-on-call/src/components/Incident/IncidentListItem.tsx @@ -243,15 +243,13 @@ export const IncidentListItem = ({ {incident.incidentLink && incident.incidentNumber && ( - {!readOnly ? ( + {!readOnly && ( - ) : ( - '' )}