File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments