🛠️ fix: Chrome App Crash on Endpoint Selection in Edit Preset Dialog (#4096)

This commit is contained in:
Danny Avila 2024-09-17 15:33:12 -04:00 committed by GitHub
parent fc887ba847
commit ebdbfe8427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -11,7 +11,7 @@ import {
mapEndpoints,
getConvoSwitchLogic,
} from '~/utils';
import { Input, Label, Dropdown, Dialog, DialogClose, DialogButton } from '~/components';
import { Input, Label, SelectDropDown, Dialog, DialogClose, DialogButton } from '~/components';
import { useSetIndexOptions, useLocalize, useDebouncedInput } from '~/hooks';
import PopoverButtons from '~/components/Chat/Input/PopoverButtons';
import DialogTemplate from '~/components/ui/DialogTemplate';
@ -146,10 +146,13 @@ const EditPresetDialog = ({
<Label htmlFor="endpoint" className="mb-1 text-left text-sm font-medium">
{localize('com_endpoint')}
</Label>
<Dropdown
<SelectDropDown
value={endpoint || ''}
onChange={switchEndpoint}
options={availableEndpoints}
setValue={switchEndpoint}
showLabel={false}
emptyTitle={true}
searchPlaceholder={localize('com_endpoint_search')}
availableValues={availableEndpoints}
/>
</div>
</div>

View file

@ -564,6 +564,7 @@ export default {
com_endpoint_export: 'Export',
com_endpoint_export_share: 'Export/Share',
com_endpoint_assistant: 'Assistant',
com_endpoint_search: 'Search endpoint by name',
com_endpoint_use_active_assistant: 'Use Active Assistant',
com_endpoint_assistant_model: 'Assistant Model',
com_endpoint_save_as_preset: 'Save As Preset',