From d3ea0ea0b151867f9281d42bf938cd27cb224a1e Mon Sep 17 00:00:00 2001 From: soridalac Date: Thu, 14 Nov 2024 19:43:29 -0800 Subject: [PATCH] fix: validation source tracking --- src/shared/sandboxCommandBase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/sandboxCommandBase.ts b/src/shared/sandboxCommandBase.ts index 0d126603..40c85a9f 100644 --- a/src/shared/sandboxCommandBase.ts +++ b/src/shared/sandboxCommandBase.ts @@ -77,7 +77,7 @@ export abstract class SandboxCommandBase extends SfCommand { const sourceTrackingSettings = await this.prodOrg .getConnection() .singleRecordQuery('SELECT IsSourceTrackingSandboxesEnabled FROM SourceTrackingSettings', { tooling: true }); - if (sourceTrackingSettings.IsSourceTrackingSandboxesEnabled !== true) { + if (sourceTrackingSettings && sourceTrackingSettings.IsSourceTrackingSandboxesEnabled !== true) { return false; } }