From 1491aa3ca4a3ee6f02115e2bdec5a7b125454be7 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Mon, 4 Oct 2021 14:09:48 -0600 Subject: [PATCH] fix: no found envs --- src/commands/env/display.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/env/display.ts b/src/commands/env/display.ts index 750f6412..fdfd843b 100644 --- a/src/commands/env/display.ts +++ b/src/commands/env/display.ts @@ -36,7 +36,7 @@ export default class EnvDisplay extends SfCommand { 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]);