change default to null
This commit is contained in:
parent
3c6a7c332a
commit
c932871bb1
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ Menu.prototype.closePopup = function (window) {
|
|||
Menu.prototype.getMenuItemById = function (id) {
|
||||
const items = this.items
|
||||
|
||||
let found = items.find(item => item.id === id) || false
|
||||
let found = items.find(item => item.id === id) || null
|
||||
for (let i = 0, length = items.length; !found && i < length; i++) {
|
||||
if (items[i].submenu) {
|
||||
found = items[i].submenu.getMenuItemById(id)
|
||||
|
|
Loading…
Reference in a new issue