Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
  • Loading branch information
yuye-aws committed Oct 17, 2023
1 parent dc30421 commit 1e1e12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/public/chrome/ui/header/collapsible_nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export function CollapsibleNav({

<EuiFlexItem className="eui-yScroll">
{sortedLinksAndCategories.map((item, i) => {
if (!('title' in item)) {
// CollapsibleNavLink has title property, while AppCategory does not have
if (!('href' in item)) {
// CollapsibleNavLink has href property, while AppCategory does not have
const category = item;
const opensearchLinkLogo =
category.id === DEFAULT_APP_CATEGORIES.opensearchDashboards.id
Expand Down

0 comments on commit 1e1e12a

Please sign in to comment.