Revert "fix: Lint Errors"

This reverts commit f057d5c85b.
This commit is contained in:
blessedcoolant 2023-07-28 04:34:41 +12:00
parent 4d2b87ea01
commit b8b46aec09
2 changed files with 3 additions and 6 deletions

View File

@ -12,7 +12,6 @@ import { selectIsBusy } from 'features/system/store/systemSelectors';
import { forEach } from 'lodash-es';
import { memo, useCallback, useMemo } from 'react';
import { useGetControlNetModelsQuery } from 'services/api/endpoints/models';
import { BaseModelType } from 'services/api/types';
type ParamControlNetModelProps = {
controlNetId: string;
@ -59,7 +58,7 @@ const ParamControlNetModel = (props: ParamControlNetModelProps) => {
data.push({
value: id,
label: model.model_name,
group: MODEL_TYPE_MAP[model.base_model as BaseModelType],
group: MODEL_TYPE_MAP[model.base_model],
disabled,
tooltip: disabled
? `Incompatible base model: ${model.base_model}`

View File

@ -11,7 +11,6 @@ import { modelIdToControlNetModelParam } from 'features/parameters/util/modelIdT
import { forEach } from 'lodash-es';
import { memo, useCallback, useMemo } from 'react';
import { useGetControlNetModelsQuery } from 'services/api/endpoints/models';
import { BaseModelType } from 'services/api/types';
import { FieldComponentProps } from './types';
const ControlNetModelInputFieldComponent = (
@ -54,7 +53,7 @@ const ControlNetModelInputFieldComponent = (
data.push({
value: id,
label: model.model_name,
group: MODEL_TYPE_MAP[model.base_model as BaseModelType],
group: MODEL_TYPE_MAP[model.base_model],
});
});
@ -88,8 +87,7 @@ const ControlNetModelInputFieldComponent = (
<IAIMantineSelect
tooltip={selectedModel?.description}
label={
selectedModel?.base_model &&
MODEL_TYPE_MAP[selectedModel?.base_model as BaseModelType]
selectedModel?.base_model && MODEL_TYPE_MAP[selectedModel?.base_model]
}
value={selectedModel?.id ?? null}
placeholder="Pick one"