fix: Minor fixes to the VAESelect components

This commit is contained in:
blessedcoolant 2023-06-30 06:33:50 +12:00 committed by psychedelicious
parent 38660a2162
commit 51db4d1269
3 changed files with 8 additions and 8 deletions

View File

@ -335,7 +335,7 @@
"modelManager": {
"modelManager": "Model Manager",
"model": "Model",
"customVAE": "Custom VAE",
"vae": "VAE",
"allModels": "All Models",
"checkpointModels": "Checkpoints",
"diffusersModels": "Diffusers",

View File

@ -42,8 +42,8 @@ const VaeModelInputFieldComponent = (
const data: SelectItem[] = [
{
value: 'auto',
label: 'auto',
group: 'Automatic',
label: 'Automatic',
group: 'Default',
},
];
@ -83,7 +83,7 @@ const VaeModelInputFieldComponent = (
if (field.value && vaeModels?.ids.includes(field.value)) {
return;
}
handleValueChanged('none');
handleValueChanged('auto');
}, [field.value, handleValueChanged, vaeModels?.ids]);
return (

View File

@ -35,8 +35,8 @@ const VAESelect = () => {
const data: SelectItem[] = [
{
value: 'none',
label: 'None',
value: 'auto',
label: 'Automatic',
group: 'Default',
},
];
@ -75,13 +75,13 @@ const VAESelect = () => {
if (selectedModelId && vaeModels?.ids.includes(selectedModelId)) {
return;
}
handleChangeModel('none');
handleChangeModel('auto');
}, [handleChangeModel, vaeModels?.ids, selectedModelId]);
return (
<IAIMantineSelect
tooltip={selectedModel?.description}
label={t('modelManager.customVAE')}
label={t('modelManager.vae')}
value={selectedModelId}
placeholder="Pick one"
data={data}