mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Better extensionRoutes.keys() iteration (#2031)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
227a149782
commit
e3db77f7ab
@ -174,11 +174,11 @@ export class App extends React.Component {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Array.from(this.extensionRoutes.keys()).forEach((menu) => {
|
for (const menu of this.extensionRoutes.keys()) {
|
||||||
if (!rootItems.includes(menu)) {
|
if (!rootItems.includes(menu)) {
|
||||||
this.extensionRoutes.delete(menu);
|
this.extensionRoutes.delete(menu);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
renderExtensionTabLayoutRoutes() {
|
renderExtensionTabLayoutRoutes() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user