mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +01:00
fix(Icon/Minimal): unknown endpoint handling (#1059)
This commit is contained in:
parent
a53ccf0d72
commit
0450c34e3b
2 changed files with 3 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ const MinimalIcon: React.FC<IconProps> = (props) => {
|
|||
default: { icon: <OpenAIMinimalIcon />, name: 'UNKNOWN' },
|
||||
};
|
||||
|
||||
const { icon, name } = endpointIcons[endpoint];
|
||||
const { icon, name } = endpointIcons[endpoint] ?? endpointIcons.default;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue