From dba8c23cd282a430baae7b7ee47e1de837425b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristina=20Isabel=20Ca=C3=B1izales?= Date: Fri, 17 Jan 2025 23:02:35 -0300 Subject: [PATCH] chore: ? --- .../src/commands/apexActionController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/salesforcedx-vscode-apex/src/commands/apexActionController.ts b/packages/salesforcedx-vscode-apex/src/commands/apexActionController.ts index 81431d349c..a301d45bfc 100644 --- a/packages/salesforcedx-vscode-apex/src/commands/apexActionController.ts +++ b/packages/salesforcedx-vscode-apex/src/commands/apexActionController.ts @@ -262,7 +262,7 @@ export class ApexActionController { } else { throw new Error(nls.localize('schema_element_not_found')); } - if (jsonObj.ExternalServiceRegistration?.operations.ExternalServiceOperation) { + if (jsonObj.ExternalServiceRegistration?.operations?.ExternalServiceOperation) { jsonObj.ExternalServiceRegistration.operations.ExternalServiceOperation = operations; } else { throw new Error(nls.localize('operations_element_not_found'));