mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
chore(ui): finish eslint v9 migration
This commit is contained in:
@@ -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]
|
||||
);
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user