Skip to content

Commit

Permalink
fix: Menu when action is root.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Apr 2, 2024
1 parent bc38588 commit 77bafb3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/router/modules/ADempiere/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import store from '@/store'

// Components
import Layout from '@/layout'
// import store from '@/store'

// Constants
import staticRoutes from '@/router/modules/ADempiere/staticRoutes.js'

Expand Down Expand Up @@ -77,14 +77,17 @@ export function loadMainMenu({
children.push(childsSumaryConverted)
})
} else {
const childsConverted = getChildFromAction({
const childConverted = getChildFromAction({
menu: menuElement,
index: undefined,
clientId,
roleId,
organizationId
})
children.push(childsConverted)
childConverted.hidden = true
children.push(childConverted)
// optionMenu.redirect = childConverted.path
optionMenu.meta.breadcrumb = false
}

optionMenu.children = children
Expand Down

0 comments on commit 77bafb3

Please sign in to comment.