Small fixes

This commit is contained in:
Thoronium
2023-09-16 20:00:28 -06:00
parent a1571ad800
commit 0e2b4a4a54
2 changed files with 1 additions and 4 deletions

View File

@@ -41,7 +41,6 @@ interface IState {
migotoSet: boolean migotoSet: boolean
unElevated: boolean unElevated: boolean
launchArgs: string
} }
export default class ServerLaunchSection extends React.Component<IProps, IState> { export default class ServerLaunchSection extends React.Component<IProps, IState> {
@@ -65,7 +64,6 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
akebiSet: false, akebiSet: false,
migotoSet: false, migotoSet: false,
unElevated: false, unElevated: false,
launchArgs: '',
} }
this.toggleGrasscutter = this.toggleGrasscutter.bind(this) this.toggleGrasscutter = this.toggleGrasscutter.bind(this)
@@ -97,7 +95,6 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
akebiSet: config.akebi_path !== '', akebiSet: config.akebi_path !== '',
migotoSet: config.migoto_path !== '', migotoSet: config.migoto_path !== '',
unElevated: config.un_elevated || false, unElevated: config.un_elevated || false,
launchArgs: config.launch_args || '',
}) })
} }

View File

@@ -706,7 +706,7 @@ export default class Options extends React.Component<IProps, IState> {
key="launch_args" key="launch_args"
placeholder={'-arg=value'} placeholder={'-arg=value'}
onChange={this.setLaunchArgs} onChange={this.setLaunchArgs}
initalValue={this.state.launch_args} initalValue={this.state?.launch_args}
/> />
</div> </div>
</Menu> </Menu>