mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +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
|
|
@ -77,7 +77,8 @@ const Icon: React.FC<IconProps> = (props) => {
|
|||
default: { icon: <GPTIcon size={size * 0.7} />, bg: 'grey', name: 'UNKNOWN' },
|
||||
};
|
||||
|
||||
const { icon, bg, name } = endpointIcons[endpoint ?? 'default'];
|
||||
const { icon, bg, name } =
|
||||
endpoint && endpointIcons[endpoint] ? endpointIcons[endpoint] : endpointIcons.default;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue