From c0b40a656251c8085ab781a0743c65e2b9148c58 Mon Sep 17 00:00:00 2001 From: Ben Dye Date: Thu, 3 Oct 2024 12:04:20 -0400 Subject: [PATCH] optional chaining Signed-off-by: Ben Dye --- .../static/js/components/OwnerEditor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/amundsen_application/static/js/components/OwnerEditor/index.tsx b/frontend/amundsen_application/static/js/components/OwnerEditor/index.tsx index abe50c2da5..469b978fff 100644 --- a/frontend/amundsen_application/static/js/components/OwnerEditor/index.tsx +++ b/frontend/amundsen_application/static/js/components/OwnerEditor/index.tsx @@ -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; } });