From 850d835b5793740be598b536461e4c97bb66cb9e Mon Sep 17 00:00:00 2001 From: Ben Dye Date: Thu, 3 Oct 2024 11:07:33 -0400 Subject: [PATCH 01/11] test for staging deploy Signed-off-by: Ben Dye --- .../static/js/components/OwnerEditor/index.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/frontend/amundsen_application/static/js/components/OwnerEditor/index.tsx b/frontend/amundsen_application/static/js/components/OwnerEditor/index.tsx index 5a0240accf..abe50c2da5 100644 --- a/frontend/amundsen_application/static/js/components/OwnerEditor/index.tsx +++ b/frontend/amundsen_application/static/js/components/OwnerEditor/index.tsx @@ -248,14 +248,25 @@ export class OwnerEditor extends React.Component< // check if rendering an owner category that lacks any entries let isEmptySection = false; - if (section) { + console.log(`itemProps: ${JSON.stringify(itemProps)}`); + + // 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) { + section = null; + } + }); + + if (section !== null) { isEmptySection = Object.keys(itemProps).every( (key) => itemProps[key].additionalOwnerInfo.owner_category.toLowerCase() !== - section.label.toLowerCase() + section?.label?.toLowerCase() ); } + console.log(`isEmptySection: ${isEmptySection}`); + return (