Skip to content

Commit

Permalink
check for uncategorized owners
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 c0b40a6 commit f767957
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,15 @@ export class OwnerEditor extends React.Component<

renderOwnersList = () => {
const sections = getOwnersSectionConfig().categories;
const { itemProps } = this.state;

if (sections.length > 0) {
if (
sections.length > 0 &&
// render default way if there are any uncategorized owners
Object.keys(itemProps).every((key) => {
return itemProps[key].additionalOwnerInfo?.owner_category;
})
) {
return (
<div>
{sections.map((section) => this.renderOwnersSection(section))}
Expand Down

0 comments on commit f767957

Please sign in to comment.