Fix linting issues
This commit is contained in:
parent
4009ed8443
commit
4c3fcace5e
|
@ -34,6 +34,7 @@ export function Profiles(props: ProfilesProps) {
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||||
const saveProfile = useStore(state, (s) => s.saveProfile);
|
const saveProfile = useStore(state, (s) => s.saveProfile);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||||
const removeProfile = useStore(state, (s) => s.removeProfile);
|
const removeProfile = useStore(state, (s) => s.removeProfile);
|
||||||
const profiles = useStore(state, (s) => s.profiles);
|
const profiles = useStore(state, (s) => s.profiles);
|
||||||
const highres = useStore(state, (s) => s.highres);
|
const highres = useStore(state, (s) => s.highres);
|
||||||
|
@ -49,9 +50,9 @@ export function Profiles(props: ProfilesProps) {
|
||||||
sx={{ width: 200 }}
|
sx={{ width: 200 }}
|
||||||
getOptionLabel={(option) => option.name}
|
getOptionLabel={(option) => option.name}
|
||||||
clearOnBlur
|
clearOnBlur
|
||||||
renderOption={(props, option) => (
|
renderOption={(optionProps, option) => (
|
||||||
<ListItem
|
<ListItem
|
||||||
{...props}
|
{...optionProps}
|
||||||
secondaryAction={
|
secondaryAction={
|
||||||
<IconButton edge="end" onClick={(event) => {
|
<IconButton edge="end" onClick={(event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -80,7 +81,7 @@ export function Profiles(props: ProfilesProps) {
|
||||||
</Stack>
|
</Stack>
|
||||||
)}
|
)}
|
||||||
onChange={(event, value) => {
|
onChange={(event, value) => {
|
||||||
if (value?.params && doesExist(props.setParams)) {
|
if (doesExist(value) && doesExist(props.setParams)) {
|
||||||
props.setParams({
|
props.setParams({
|
||||||
...value.params
|
...value.params
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue