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 ( <>