mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
lint
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
86b19ac24b
commit
d8297e44bc
@ -242,7 +242,7 @@ export function buildMenu(windowManager: WindowManager) {
|
||||
const parentLabels: string[] = [];
|
||||
let menuItem: MenuItem
|
||||
|
||||
for (let name of names) {
|
||||
for (const name of names) {
|
||||
parentLabels.push(name);
|
||||
menuItem = menu?.items?.find(item => item.label === name);
|
||||
if (!menuItem) {
|
||||
@ -256,7 +256,7 @@ export function buildMenu(windowManager: WindowManager) {
|
||||
return;
|
||||
}
|
||||
|
||||
let { enabled, visible, click } = menuItem;
|
||||
const { enabled, visible, click } = menuItem;
|
||||
if (enabled === false || visible === false || typeof click !== 'function') {
|
||||
logger.info(`[MENU:test-menu-item-click] Menu item ${parentLabels.join(" -> ")} not clickable`);
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user