Skip to content

Commit

Permalink
fix(main-menu.js): run modifyMenu hook without loadapp wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Nov 22, 2021
1 parent a0732be commit 9471cb2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/main-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ const loadItems = () => {
}

const adjustMenu = () => {
new AppLoader().loadApp().then((vueInstance => {
vueInstance.appHooks.run('modifyMenu', store.getters.mainMenu)
}))
AppLoader.getInstance().appHooks.run('modifyMenu', store.getters.mainMenu)
}

/**
Expand Down

0 comments on commit 9471cb2

Please sign in to comment.