1
0
Fork 0

Fix linting issues

This commit is contained in:
Ben Fortune 2023-06-30 16:54:53 +01:00
parent 4009ed8443
commit 4c3fcace5e
1 changed files with 4 additions and 3 deletions

View File

@ -34,6 +34,7 @@ export function Profiles(props: ProfilesProps) {
// eslint-disable-next-line @typescript-eslint/unbound-method
const saveProfile = useStore(state, (s) => s.saveProfile);
// eslint-disable-next-line @typescript-eslint/unbound-method
const removeProfile = useStore(state, (s) => s.removeProfile);
const profiles = useStore(state, (s) => s.profiles);
const highres = useStore(state, (s) => s.highres);
@ -49,9 +50,9 @@ export function Profiles(props: ProfilesProps) {
sx={{ width: 200 }}
getOptionLabel={(option) => option.name}
clearOnBlur
renderOption={(props, option) => (
renderOption={(optionProps, option) => (
<ListItem
{...props}
{...optionProps}
secondaryAction={
<IconButton edge="end" onClick={(event) => {
event.preventDefault();
@ -80,7 +81,7 @@ export function Profiles(props: ProfilesProps) {
</Stack>
)}
onChange={(event, value) => {
if (value?.params && doesExist(props.setParams)) {
if (doesExist(value) && doesExist(props.setParams)) {
props.setParams({
...value.params
});