mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
try adding a key to force rerender when items load
This commit is contained in:
parent
9d523a3094
commit
b64a693f16
@ -18,6 +18,7 @@ const ParamMainModelSelect = () => {
|
||||
const dispatch = useAppDispatch();
|
||||
const { t } = useTranslation();
|
||||
const selectedModel = useAppSelector(selectModel);
|
||||
console.log({ selectedModel });
|
||||
const { data, isLoading } = useGetMainModelsQuery(NON_REFINER_BASE_MODELS);
|
||||
|
||||
const _onChange = useCallback(
|
||||
@ -46,7 +47,13 @@ const ParamMainModelSelect = () => {
|
||||
<InformationalPopover feature="paramModel">
|
||||
<FormLabel>{t('modelManager.model')}</FormLabel>
|
||||
</InformationalPopover>
|
||||
<CustomSelect selectedItem={selectedItem} placeholder={placeholder} items={items} onChange={onChange} />
|
||||
<CustomSelect
|
||||
key={items.length}
|
||||
selectedItem={selectedItem}
|
||||
placeholder={placeholder}
|
||||
items={items}
|
||||
onChange={onChange}
|
||||
/>
|
||||
</FormControl>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user