mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-26 13:18:51 +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
|
|
@ -42,7 +42,7 @@ export default function NewConversationMenu() {
|
|||
const [conversation, setConversation] = useRecoilState(store.conversation) ?? {};
|
||||
const [messages, setMessages] = useRecoilState(store.messages);
|
||||
|
||||
const { data: availableEndpoints } = useGetEndpointsQuery({
|
||||
const { data: availableEndpoints = [] } = useGetEndpointsQuery({
|
||||
select: mapEndpoints,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue