Skip to content

Commit

Permalink
fix: no found envs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 4, 2021
1 parent 3d65832 commit 1491aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/env/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class EnvDisplay extends SfCommand<JsonObject> {

try {
const results = await SfHook.run(this.config, 'sf:env:display', { targetEnv });
const result = results.successes.find((s) => !!s.result)?.result || null;
const result = results.successes.find((s) => !!s.result?.data)?.result || null;

if (!result) {
throw messages.createError('error.NoEnvFound', [targetEnv]);
Expand Down

0 comments on commit 1491aa3

Please sign in to comment.