1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

resolve pr comment

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-01-27 10:05:30 -05:00
parent f97002828f
commit 0062395550

View File

@ -53,17 +53,17 @@ export class ExtensionLoader {
} }
@computed get userExtensionsByName(): Map<string, LensExtension> { @computed get userExtensionsByName(): Map<string, LensExtension> {
const res = new Map(); const extensions = new Map();
for (const [, val] of this.instances.toJS()) { for (const [, val] of this.instances.toJS()) {
if (val.isBundled) { if (val.isBundled) {
continue; continue;
} }
res.set(val.manifest.name, val); extensions.set(val.manifest.name, val);
} }
return res; return extensions;
} }
// Transform userExtensions to a state object for storing into ExtensionsStore // Transform userExtensions to a state object for storing into ExtensionsStore