mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
🛠️ fix: Chrome App Crash on Endpoint Selection in Edit Preset Dialog (#4096)
This commit is contained in:
parent
fc887ba847
commit
ebdbfe8427
2 changed files with 8 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue