mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
hotfix(useGetEndpointsQuery): set default variable value when transforming data with select (#1097)
This commit is contained in:
parent
3d4a8778d5
commit
c7bfb2ab40
3 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ import store from '~/store';
|
|||
const EditPresetDialog = ({ open, onOpenChange, preset: _preset, title }: TEditPresetProps) => {
|
||||
const [preset, setPreset] = useRecoilState(store.preset);
|
||||
const setPresets = useSetRecoilState(store.presets);
|
||||
const { data: availableEndpoints } = useGetEndpointsQuery({
|
||||
const { data: availableEndpoints = [] } = useGetEndpointsQuery({
|
||||
select: mapEndpoints,
|
||||
});
|
||||
const { setOption } = useSetOptions(_preset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue