resolve pr comment

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-02-02 08:49:35 -05:00
1 parent f97002828f
commit 0062395550
1 file changed
+3 -3
+3 -3
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