Update src/menu-helpers.js

Co-authored-by: Sadick <sadickjunior@gmail.com>
This commit is contained in:
sibaki_girls
2021-06-25 06:49:09 +09:00
committed by GitHub
parent 66a49e301d
commit 2e4956f3c9

View File

@@ -61,7 +61,6 @@ function findMatchingItemIndex(menu, { type, id, submenu }) {
for (let index = 0; index < menu.length; index++) {
const item = menu[index];
if (
// normalizeLabel(item.label) === normalizeLabel(label) &&
item.id === id &&
(item.submenu != null) === (submenu != null)
) {