mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
👨✈️ chore: Minor MCP-UI Logic Cleanup (#10950)
This commit is contained in:
parent
959e301f99
commit
5b0cce2e2a
5 changed files with 14 additions and 14 deletions
|
|
@ -56,7 +56,7 @@ export function MCPUIResource(props: MCPUIResourceProps) {
|
|||
console.error('Error rendering UI resource:', error);
|
||||
return (
|
||||
<span className="inline-flex items-center rounded bg-red-50 px-2 py-1 text-xs font-medium text-red-600">
|
||||
{localize('com_ui_ui_resource_error', { 0: uiResource.name })}
|
||||
{localize('com_ui_ui_resource_error', { 0: uiResource.name || resourceId })}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ interface ShareMessagesProviderProps {
|
|||
export function ShareMessagesProvider({ messages, children }: ShareMessagesProviderProps) {
|
||||
const contextValue = useMemo<MessagesViewContextValue>(
|
||||
() => ({
|
||||
conversation: { conversationId: 'shared-conversation' },
|
||||
conversation: null,
|
||||
conversationId: undefined,
|
||||
// These are required by the context but not used in share view
|
||||
ask: () => Promise.resolve(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue