Skip to content

Commit 1397861

Browse files
committed
fix
1 parent 565e930 commit 1397861

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/atlas/connect/connectCluster.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,11 @@ export class ConnectClusterTool extends AtlasToolBase {
308308

309309
protected override resolveTelemetryMetadata(
310310
result: CallToolResult,
311-
args: Parameters<ToolCallback<typeof this.argsShape>>
311+
...args: Parameters<ToolCallback<typeof this.argsShape>>
312312
): ConnectionMetadata {
313313
const parentMetadata = super.resolveTelemetryMetadata(result, ...args);
314314
const connectionMetadata = this.getConnectionInfoMetadata();
315-
if (connectionMetadata.project_id !== undefined) {
315+
if (connectionMetadata && connectionMetadata.project_id !== undefined) {
316316
// delete the project_id from the parent metadata to avoid duplication
317317
delete parentMetadata.project_id;
318318
}

0 commit comments

Comments
 (0)