fix(ui): duplicate "base model" in merge UI

closes #5505
This commit is contained in:
psychedelicious 2024-01-23 23:08:36 +11:00 committed by Kent Keirsey
parent 52b51a6088
commit 2aed6e2dba

View File

@ -122,13 +122,10 @@ const AdvancedAddDiffusers = (props: AdvancedAddDiffusersProps) => {
<FormErrorMessage>{errors.model_name?.message}</FormErrorMessage>
)}
</FormControl>
<FormControl>
<FormLabel>{t('modelManager.baseModel')}</FormLabel>
<BaseModelSelect<DiffusersModelConfig>
control={control}
name="base_model"
/>
</FormControl>
<BaseModelSelect<DiffusersModelConfig>
control={control}
name="base_model"
/>
<FormControl isInvalid={Boolean(errors.path)}>
<FormLabel>{t('modelManager.modelLocation')}</FormLabel>
<Input
@ -137,7 +134,7 @@ const AdvancedAddDiffusers = (props: AdvancedAddDiffusersProps) => {
value.trim().length > 0 || 'Must provide a path',
onBlur,
})}
/>{' '}
/>
{errors.path?.message && (
<FormErrorMessage>{errors.path?.message}</FormErrorMessage>
)}