🔧 chore: Fix errors causing unit tests and ESLint checks to fail

This commit is contained in:
Dustin Healy 2025-07-21 07:59:21 -07:00
parent a360b61a2f
commit e2d0de6b65
3 changed files with 3 additions and 11 deletions

View file

@ -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);
}

View file

@ -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';

View file

@ -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 />;
}