Skip to content

Commit

Permalink
Temporary fix for extensions always disabled on startup (#7801)
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
  • Loading branch information
jim-docker committed May 30, 2023
1 parent eaa235b commit 1b36cd7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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),
});
},
Expand Down

0 comments on commit 1b36cd7

Please sign in to comment.