diff --git a/src/hooks/envDisplay.ts b/src/hooks/envDisplay.ts index 32016613..2cbd8acc 100644 --- a/src/hooks/envDisplay.ts +++ b/src/hooks/envDisplay.ts @@ -12,7 +12,7 @@ const hook: SfHook.EnvDisplay = async function (opts) { const orgs = await AuthInfo.listAllAuthorizations(); const data = orgs.find((org) => org.username === opts.targetEnv) ?? orgs.find((org) => org.aliases?.includes(opts.targetEnv)); - delete data['timestamp']; + if (data) delete data['timestamp']; return { data, keys: { orgId: 'Org ID', oauthMethod: 'Auth Method' },