mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
hard-code the migration version for now
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
0a4c748c7c
commit
637d626c63
@ -16,10 +16,6 @@ const storageMigrationVersionInjectable = getInjectable({
|
||||
instantiate: (di, token) => {
|
||||
const declarations = di.injectMany(token);
|
||||
|
||||
if (declarations.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return declarations.reduce((version, decl) => {
|
||||
if (semver.gte(decl.version, version)) {
|
||||
return decl.version;
|
||||
|
||||
@ -7,7 +7,6 @@ import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { action, toJS } from "mobx";
|
||||
import createPersistentStorageInjectable from "../../../../common/persistent-storage/create.injectable";
|
||||
import persistentStorageMigrationsInjectable from "../../../../common/persistent-storage/migrations.injectable";
|
||||
import storageMigrationVersionInjectable from "../../../../common/persistent-storage/storage-migration-version.injectable";
|
||||
import { enabledExtensionsMigrationDeclarationInjectionToken } from "./migrations";
|
||||
import type { LensExtensionState } from "./state.injectable";
|
||||
import enabledExtensionsStateInjectable from "./state.injectable";
|
||||
@ -30,7 +29,7 @@ const enabledExtensionsPersistentStorageInjectable = getInjectable({
|
||||
toJSON: () => ({
|
||||
extensions: [...toJS(state)],
|
||||
}),
|
||||
projectVersion: di.inject(storageMigrationVersionInjectable, enabledExtensionsMigrationDeclarationInjectionToken),
|
||||
projectVersion: "6.5.0", // temporary fix for #7784, otherwise calculated wrong on the renderer process
|
||||
migrations: di.inject(persistentStorageMigrationsInjectable, enabledExtensionsMigrationDeclarationInjectionToken),
|
||||
});
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user