fix(ui): tsc

This commit is contained in:
psychedelicious 2024-01-05 23:40:58 +11:00
parent 3c4150d153
commit 4716632c23
2 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ import {
selectOptimalDimension,
widthChanged,
} from 'features/parameters/store/generationSlice';
import { activeTabNameSelector } from 'features/ui/store/uiSelectors';
import { memo, useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { FaRulerVertical, FaSave, FaUndo } from 'react-icons/fa';
@ -51,7 +52,7 @@ const ControlAdapterImagePreview = ({ isSmall, id }: Props) => {
const processorType = useControlAdapterProcessorType(id);
const autoAddBoardId = useAppSelector((s) => s.gallery.autoAddBoardId);
const isConnected = useAppSelector((s) => s.system.isConnected);
const activeTabName = useAppSelector(selectActiveTabname);
const activeTabName = useAppSelector(activeTabNameSelector);
const optimalDimension = useAppSelector(selectOptimalDimension);
const pendingControlImages = useAppSelector(selectPendingControlImages);

View File

@ -37,7 +37,7 @@ const ParamControlAdapterModel = ({ id }: ParamControlAdapterModelProps) => {
const currentBaseModel = useAppSelector(
(s) => s.generation.model?.base_model
);
const { mainModel } = useAppSelector(selectMainModel);
const mainModel = useAppSelector(selectMainModel);
const { t } = useTranslation();
const models = useControlAdapterModelEntities(controlAdapterType);