Skip to content

Commit

Permalink
optional chaining
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Dye <[email protected]>
  • Loading branch information
B-T-D committed Oct 3, 2024
1 parent eabbba2 commit c0b40a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class OwnerEditor extends React.Component<

// if any owners uncategorized, set section to null to render an uncategorized owners list
Object.keys(itemProps).forEach((key) => {
if (!itemProps[key].additionalOwnerInfo.owner_category) {
if (!itemProps[key].additionalOwnerInfo?.owner_category) {
section = null;
}
});
Expand Down

0 comments on commit c0b40a6

Please sign in to comment.