From 1514d8a3137148964ab78907fa0c0739fde8b8ba Mon Sep 17 00:00:00 2001 From: Mike Ball Date: Mon, 7 Feb 2022 10:06:30 -0500 Subject: [PATCH] Update plugins/splunk-on-call/src/components/EntitySplunkOnCallCard.tsx Co-authored-by: Johan Haals Signed-off-by: Mike Ball --- .../splunk-on-call/src/components/EntitySplunkOnCallCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/splunk-on-call/src/components/EntitySplunkOnCallCard.tsx b/plugins/splunk-on-call/src/components/EntitySplunkOnCallCard.tsx index 109484ac04..70aeb98cbd 100644 --- a/plugins/splunk-on-call/src/components/EntitySplunkOnCallCard.tsx +++ b/plugins/splunk-on-call/src/components/EntitySplunkOnCallCard.tsx @@ -215,7 +215,7 @@ export const EntitySplunkOnCallCard = () => { team: Team | undefined; usersHashMap: any; }) => { - const teamName = team && team.name ? team.name : ''; + const teamName = team?.name ?? ''; return ( <>