diff --git a/src/commands/org/refresh/sandbox.ts b/src/commands/org/refresh/sandbox.ts index 436f21e8..bf591749 100644 --- a/src/commands/org/refresh/sandbox.ts +++ b/src/commands/org/refresh/sandbox.ts @@ -34,7 +34,6 @@ const fields = [ 'SourceId', // (string) SandboxInfoId as the source org used for a clone // 'ActivationUserGroupId', // Currently not supported but might be added in API v61.0 // 'CopyArchivedActivities', -- only for full sandboxes; depends if a license was purchased - 'IsSourceTrackingSandboxesEnabled', ...uneditableFields, ]; diff --git a/src/shared/sandboxCommandBase.ts b/src/shared/sandboxCommandBase.ts index 0d126603..84b3de53 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?.IsSourceTrackingSandboxesEnabled !== true) { return false; } } diff --git a/src/shared/sandboxProgress.ts b/src/shared/sandboxProgress.ts index c994bc74..6b6a97c2 100644 --- a/src/shared/sandboxProgress.ts +++ b/src/shared/sandboxProgress.ts @@ -20,7 +20,7 @@ export type SandboxProgressData = { }; export type SandboxStatusData = { - sandboxUsername: string | undefined; + sandboxUsername: string; sandboxProgress: SandboxProgressData; sandboxProcessObj?: SandboxProcessObject | undefined; };