From 518908ba6119538b3b8dd0ba6c0421e458a8d78e Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 2 Nov 2022 16:10:48 -0400 Subject: [PATCH] Fix initialization ordering bug Signed-off-by: Sebastian Malton --- src/renderer/stores/init-user-store.injectable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/stores/init-user-store.injectable.ts b/src/renderer/stores/init-user-store.injectable.ts index d58b3cb68c..83cd288f18 100644 --- a/src/renderer/stores/init-user-store.injectable.ts +++ b/src/renderer/stores/init-user-store.injectable.ts @@ -4,8 +4,8 @@ */ import { getInjectable } from "@ogre-tools/injectable"; import userStoreInjectable from "../../common/user-store/user-store.injectable"; +import { initDefaultUpdateChannelOnRendererInjectable } from "../../features/application-update/common/selected-update-channel/default-update-channel.injectable"; import { beforeFrameStartsInjectionToken } from "../before-frame-starts/before-frame-starts-injection-token"; -import { initializeBuildVersionOnRendererInjectable } from "../vars/build-version.injectable"; const initUserStoreInjectable = getInjectable({ id: "init-user-store", @@ -15,7 +15,7 @@ const initUserStoreInjectable = getInjectable({ return { id: "init-user-store", run: () => userStore.load(), - runAfter: di.inject(initializeBuildVersionOnRendererInjectable), + runAfter: di.inject(initDefaultUpdateChannelOnRendererInjectable), }; }, injectionToken: beforeFrameStartsInjectionToken,