Fix type error

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-03-01 13:34:47 -05:00
1 parent 4561a59906
commit 28c145585f
2 files changed
+3 -1

No files matched your search

@@ -16,6 +16,7 @@ import { baseStoreIpcChannelPrefixesInjectionToken } from "../base-store/channel
import { persistStateToConfigInjectionToken } from "../base-store/save-to-file";
import { enlistMessageChannelListenerInjectionToken } from "../utils/channel/enlist-message-channel-listener-injection-token";
import { shouldBaseStoreDisableSyncInIpcListenerInjectionToken } from "../base-store/disable-sync";
import { onTooManyHotbarItemsInjectionToken } from "../../features/hotbar/store/common/on-too-many-items";
const hotbarStoreInjectable = getInjectable({
id: "hotbar-store",
@@ -32,6 +33,7 @@ const hotbarStoreInjectable = getInjectable({
persistStateToConfig: di.inject(persistStateToConfigInjectionToken),
enlistMessageChannelListener: di.inject(enlistMessageChannelListenerInjectionToken),
shouldDisableSyncInListener: di.inject(shouldBaseStoreDisableSyncInIpcListenerInjectionToken),
onTooManyHotbarItems: di.inject(onTooManyHotbarItemsInjectionToken),
}),
});
@@ -24,7 +24,7 @@ const getClusterForRequestInjectable = getInjectable({
const cluster = getClusterById(clusterId);
if (cluster) {
// we need to swap path prefix so that request is proxied to kube api
// we need to swap path prefix so that request is proxied to kube api
req.url = req.url.replace(`/${clusterId}`, apiKubePrefix);
}