chore(ui): finish eslint v9 migration

This commit is contained in:
psychedelicious
2025-07-17 21:27:27 +10:00
parent 875cde13ae
commit 5d9e078043
49 changed files with 112 additions and 109 deletions

View File

@@ -22,7 +22,11 @@ const PredictionTypeSelect = ({ control }: Props) => {
const value = useMemo(() => options.find((o) => o.value === field.value), [field.value]);
const onChange = useCallback<ComboboxOnChange>(
(v) => {
v?.value === 'none' ? field.onChange(undefined) : field.onChange(v?.value);
if (v?.value === 'none') {
field.onChange(undefined);
} else {
field.onChange(v?.value);
}
},
[field]
);

View File

@@ -10,7 +10,7 @@ import {
TagLabel,
} from '@invoke-ai/ui-library';
import type { ChangeEvent } from 'react';
import { memo, useCallback, useMemo, useState } from 'react';
import React, { memo, useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { PiPlusBold } from 'react-icons/pi';
import { useUpdateModelMutation } from 'services/api/endpoints/models';