Skip to content

Commit

Permalink
Fix getting targetIdentifier if plan_unit falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
henrinie-nc committed Dec 5, 2023
1 parent c62a61d commit 5ff23d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const renderTargets = ({
formValues,
}: RenderTargetProps): React$Node => <Fragment>
{!!targets && targets.map((target) => {
const targetIdentifier = target.plan_unit.identifier || target.custom_detailed_plan.identifier;
const targetIdentifier = target.plan_unit && target.plan_unit.identifier || target.custom_detailed_plan && target.custom_detailed_plan.identifier;

let isChecked = false;
if (formValues) {
Expand Down

0 comments on commit 5ff23d6

Please sign in to comment.