diff --git a/src/renderer/components/select/select.test.tsx b/src/renderer/components/select/select.test.tsx index 5619ba77d7..bc1bf25467 100644 --- a/src/renderer/components/select/select.test.tsx +++ b/src/renderer/components/select/select.test.tsx @@ -122,7 +122,7 @@ describe("); const selectedValueContainer = container.querySelector(".Select__single-value"); diff --git a/src/renderer/components/select/select.tsx b/src/renderer/components/select/select.tsx index dcbb176e47..6fd9a6d124 100644 --- a/src/renderer/components/select/select.tsx +++ b/src/renderer/components/select/select.tsx @@ -14,7 +14,6 @@ import ReactSelect, { components } from "react-select"; import type { Props as ReactSelectProps, GroupBase } from "react-select"; import { ThemeStore } from "../../theme.store"; import { autoBind, cssNames } from "../../utils"; -import { merge } from "lodash"; const { Menu } = components; @@ -65,6 +64,7 @@ export class Select ({ ...styles, zIndex: "auto", }), - })} + ...styles, + }} + value={value} onKeyDown={this.onKeyDown} className={cssNames("Select", this.themeClass, className)} classNamePrefix="Select" diff --git a/src/renderer/getDiForUnitTesting.tsx b/src/renderer/getDiForUnitTesting.tsx index 2b74a4adc0..f82565516c 100644 --- a/src/renderer/getDiForUnitTesting.tsx +++ b/src/renderer/getDiForUnitTesting.tsx @@ -34,6 +34,7 @@ import joinPathsInjectable from "../common/path/join-paths.injectable"; import { joinPathsFake } from "../common/test-utils/join-paths-fake"; import hotbarStoreInjectable from "../common/hotbar-store.injectable"; import terminalSpawningPoolInjectable from "./components/dock/terminal/terminal-spawning-pool.injectable"; +import hostedClusterIdInjectable from "../common/cluster-store/hosted-cluster-id.injectable"; export const getDiForUnitTesting = ( { doGeneralOverrides } = { doGeneralOverrides: false }, @@ -59,6 +60,7 @@ export const getDiForUnitTesting = ( di.override(isLinuxInjectable, () => false); di.override(terminalSpawningPoolInjectable, () => new HTMLElement()); + di.override(hostedClusterIdInjectable, () => undefined); di.override(getAbsolutePathInjectable, () => getAbsolutePathFake); di.override(joinPathsInjectable, () => joinPathsFake);