diff --git a/src/common/base-store.ts b/src/common/base-store.ts index ecaa281864..2c2f66dd23 100644 --- a/src/common/base-store.ts +++ b/src/common/base-store.ts @@ -59,10 +59,10 @@ export abstract class BaseStore extends Singleton { const getConfigurationFileModel = di.inject(getConfigurationFileModelInjectable); this.storeConfig = getConfigurationFileModel({ - ...this.params, projectName: "lens", projectVersion: di.inject(appVersionInjectable), cwd: this.cwd(), + ...this.params, }); const res: any = this.fromStore(this.storeConfig.store); diff --git a/src/extensions/extension-store.ts b/src/extensions/extension-store.ts index 59a7ce86b9..4217576d2f 100644 --- a/src/extensions/extension-store.ts +++ b/src/extensions/extension-store.ts @@ -15,6 +15,8 @@ export abstract class ExtensionStore extends BaseStore { loadExtension(extension: LensExtension) { this.extension = extension; + this.params.projectVersion ??= this.extension.version; + return super.load(); }