mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): use existing GroupStatusMap type
This commit is contained in:
@@ -2,6 +2,7 @@ import { FormControl, FormLabel } from '@invoke-ai/ui-library';
|
||||
import { createSelector } from '@reduxjs/toolkit';
|
||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||
import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';
|
||||
import type { GroupStatusMap } from 'common/components/Picker/Picker';
|
||||
import { useRelatedGroupedModelCombobox } from 'common/hooks/useRelatedGroupedModelCombobox';
|
||||
import { loraAdded, selectLoRAsSlice } from 'features/controlLayers/store/lorasSlice';
|
||||
import { selectBase } from 'features/controlLayers/store/paramsSlice';
|
||||
@@ -69,7 +70,7 @@ const LoRASelect = () => {
|
||||
const groupId = API_BASE_MODELS.includes(currentBaseModel) ? 'api' : currentBaseModel;
|
||||
|
||||
// Return a map with only the current base model group enabled
|
||||
return { [groupId]: true };
|
||||
return { [groupId]: true } satisfies GroupStatusMap;
|
||||
}, [currentBaseModel]);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user