File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/renderer/components/version-viewer/slides/launch Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { safeLt } from "shared/helpers/semver.helpers";
1919import { WarningIcon } from "renderer/components/svgs/icons/warning-icon.component" ;
2020import Tippy from "@tippyjs/react" ;
2121import { CustomLaunchOption , LaunchModItemProps , LaunchOptionsPanel } from "./launch-options-panel.component" ;
22- import { LaunchMods } from "shared/models/bs-launch/launch-option.interface" ;
22+ import { LaunchMod , LaunchMods } from "shared/models/bs-launch/launch-option.interface" ;
2323import { OculusIcon } from "renderer/components/svgs/icons/oculus-icon.component" ;
2424import { DesktopIcon } from "renderer/components/svgs/icons/desktop-icon.component" ;
2525import { TerminalIcon } from "renderer/components/svgs/icons/terminal-icon.component" ;
@@ -176,7 +176,7 @@ export function LaunchSlide({ version }: Props) {
176176 const launch = async ( ) => {
177177 const launch$ = bsLauncherService . launch ( {
178178 version,
179- launchMods : activeLaunchMods . map ( mod => LaunchMods [ mod as keyof typeof LaunchMods ] ) . filter ( Boolean ) ,
179+ launchMods : activeLaunchMods . filter ( mod => Object . values ( LaunchMods ) . includes ( mod as LaunchMod ) ) as LaunchMod [ ] ,
180180 command : [ command , ...customLaunchModsArgs ] . filter ( Boolean ) . join ( " " ) . trim ( ) ,
181181 } ) ;
182182
You can’t perform that action at this time.
0 commit comments