mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🔧 chore: Fix errors causing unit tests and ESLint checks to fail
This commit is contained in:
parent
a360b61a2f
commit
e2d0de6b65
3 changed files with 3 additions and 11 deletions
|
|
@ -108,6 +108,8 @@ https://www.librechat.ai/docs/configuration/stt_tts`);
|
|||
|
||||
return null;
|
||||
} else {
|
||||
logger.info('Custom config file loaded:');
|
||||
logger.info(JSON.stringify(customConfig, null, 2));
|
||||
logger.debug('Custom config:', customConfig);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React, { memo, useCallback, useState, useMemo } from 'react';
|
|||
import { SettingsIcon, PlugZap } from 'lucide-react';
|
||||
import { Constants } from 'librechat-data-provider';
|
||||
import { useUpdateUserPluginsMutation } from 'librechat-data-provider/react-query';
|
||||
import { useMCPConnectionStatusQuery, useMCPAuthValuesQuery } from '~/data-provider';
|
||||
import { useMCPConnectionStatusQuery } from '~/data-provider';
|
||||
import { useQueryClient } from '@tanstack/react-query';
|
||||
import { QueryKeys } from 'librechat-data-provider';
|
||||
import type { TUpdateUserPlugins, TPlugin } from 'librechat-data-provider';
|
||||
|
|
|
|||
|
|
@ -239,16 +239,6 @@ export default function MCPPanel() {
|
|||
return schema;
|
||||
}, [selectedServer]);
|
||||
|
||||
const initialValues = useMemo(() => {
|
||||
if (!selectedServer) return {};
|
||||
// Initialize with empty strings for all fields
|
||||
const values: Record<string, string> = {};
|
||||
Object.keys(selectedServer.config.customUserVars).forEach((key) => {
|
||||
values[key] = '';
|
||||
});
|
||||
return values;
|
||||
}, [selectedServer]);
|
||||
|
||||
if (startupConfigLoading) {
|
||||
return <MCPPanelSkeleton />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue