We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b098819 commit a10398aCopy full SHA for a10398a
1 file changed
packages/server/api/src/app/ai/mcp/tables-tools.ts
@@ -8,7 +8,7 @@ import { MCPTool } from './types';
8
export async function getTablesTools(): Promise<MCPTool> {
9
const { token } = await authenticateAdminUserInOpenOpsTables();
10
const mcpEndpoint = await openopsTables.getMcpEndpointList(token);
11
- if (!mcpEndpoint || mcpEndpoint.length === 0) {
+ if (!mcpEndpoint?.length) {
12
return {
13
client: undefined,
14
toolSet: {},
0 commit comments