From 8c834674ded9af91e6ae74aaca77b5f38f200c7c Mon Sep 17 00:00:00 2001 From: Stephen Okpalaononuju Date: Thu, 14 Dec 2023 16:39:51 +0100 Subject: [PATCH] Update plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx refactor null guard Co-authored-by: Stephen Hand --- .../components/caseMergingBanners/ContactAddedToCaseBanner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx b/plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx index cdb387168e..126dc4cb81 100644 --- a/plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx +++ b/plugin-hrm-form/src/components/caseMergingBanners/ContactAddedToCaseBanner.tsx @@ -40,7 +40,7 @@ type Props = OwnProps & ReturnType & ReturnType { const contact = selectContactByTaskSid(state, taskId); const caseId = contact?.savedContact?.caseId; - const connectedCase = state[namespace].activeContacts?.caseConnectedToContact[contact.savedContact.id]; + const connectedCase = state[namespace].activeContacts.caseConnectedToContact[contact?.savedContact?.id]; return { contact: contact.savedContact, connectedCase,