From 0e2b4a4a54cbfe8297284ab078993613221acbc8 Mon Sep 17 00:00:00 2001 From: Thoronium <107363768+NotThorny@users.noreply.github.com> Date: Sat, 16 Sep 2023 20:00:28 -0600 Subject: [PATCH] Small fixes --- src/ui/components/ServerLaunchSection.tsx | 3 --- src/ui/components/menu/Options.tsx | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ui/components/ServerLaunchSection.tsx b/src/ui/components/ServerLaunchSection.tsx index dfa8988..d315bfa 100644 --- a/src/ui/components/ServerLaunchSection.tsx +++ b/src/ui/components/ServerLaunchSection.tsx @@ -41,7 +41,6 @@ interface IState { migotoSet: boolean unElevated: boolean - launchArgs: string } export default class ServerLaunchSection extends React.Component { @@ -65,7 +64,6 @@ export default class ServerLaunchSection extends React.Component akebiSet: false, migotoSet: false, unElevated: false, - launchArgs: '', } this.toggleGrasscutter = this.toggleGrasscutter.bind(this) @@ -97,7 +95,6 @@ export default class ServerLaunchSection extends React.Component akebiSet: config.akebi_path !== '', migotoSet: config.migoto_path !== '', unElevated: config.un_elevated || false, - launchArgs: config.launch_args || '', }) } diff --git a/src/ui/components/menu/Options.tsx b/src/ui/components/menu/Options.tsx index 3393a85..a1695b5 100644 --- a/src/ui/components/menu/Options.tsx +++ b/src/ui/components/menu/Options.tsx @@ -706,7 +706,7 @@ export default class Options extends React.Component { key="launch_args" placeholder={'-arg=value'} onChange={this.setLaunchArgs} - initalValue={this.state.launch_args} + initalValue={this.state?.launch_args} />