Skip to content

Commit

Permalink
fix: validation source tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
soridalac committed Nov 15, 2024
1 parent d5c6bec commit d3ea0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/sandboxCommandBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export abstract class SandboxCommandBase<T> extends SfCommand<T> {
const sourceTrackingSettings = await this.prodOrg
.getConnection()
.singleRecordQuery('SELECT IsSourceTrackingSandboxesEnabled FROM SourceTrackingSettings', { tooling: true });
if (sourceTrackingSettings.IsSourceTrackingSandboxesEnabled !== true) {
if (sourceTrackingSettings && sourceTrackingSettings.IsSourceTrackingSandboxesEnabled !== true) {
return false;
}
}
Expand Down

0 comments on commit d3ea0ea

Please sign in to comment.