Skip to content

Commit

Permalink
feat: optimize code based on comment
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Aug 8, 2024
1 parent 55bd912 commit 4538674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/management/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class ManagementPlugin implements Plugin<ManagementSetup, ManagementStart
coreStart.chrome.navLinks.getAll()
).filter((item) => !item.hidden),
(currentItem, parentItem) => {
// Hide sub items because we will only show parent item in landing page.
// Hide all the sub items because we will only show parent item in landing page.
if (
currentItem.itemType === LinkItemType.LINK &&
parentItem?.itemType === LinkItemType.PARENT_LINK
Expand Down

0 comments on commit 4538674

Please sign in to comment.