Skip to content

Commit

Permalink
AB#226656 Error Cannot read properties of undefined Grievance ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
johniak committed Dec 12, 2024
1 parent f466892 commit 5fb9b23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function LookUpReassignRole({
return (
<Formik
initialValues={{
selectedIndividual: individualData.individual,
selectedIndividual: individualData?.individual,
selectedHousehold,
role: individualRole.role,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function ReassignMultipleRoleBox({
(el) =>
el.role === IndividualRoleInHouseholdRole.Primary || el.role === 'HEAD',
);

const mappedReassignLookups = (): ReactElement => (
<>
{selectedIndividualsToReassign.map((selectedIndividualToReassign) => {
Expand Down Expand Up @@ -97,7 +96,7 @@ export function ReassignMultipleRoleBox({
ticket={ticket}
household={householdAndRole.household}
individualToReassign={selectedIndividualToReassign}
initialSelectedIndividualId={reassignDataDictByIndividualId[selectedIndividualToReassign.id].new_individual}
initialSelectedIndividualId={reassignDataDictByIndividualId[selectedIndividualToReassign.id]?.new_individual}
/>
</Box>
));
Expand Down Expand Up @@ -137,7 +136,7 @@ export function ReassignMultipleRoleBox({
ticket={ticket}
household={household}
individualToReassign={selectedIndividualToReassign}
initialSelectedIndividualId={reassignDataDictByIndividualId[selectedIndividualToReassign.id].new_individual}
initialSelectedIndividualId={reassignDataDictByIndividualId[selectedIndividualToReassign.id]?.new_individual}
/>
</Box>
)}
Expand Down

0 comments on commit 5fb9b23

Please sign in to comment.