We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4ba764 + 1e3aa1d commit 745211eCopy full SHA for 745211e
src/commands/sites.js
@@ -43,7 +43,7 @@ export async function listSites(args = {}) {
43
formatDate(domain.created_at).split(',')[0],
44
domain.protected ? chalk.red('Yes') : chalk.green('No'),
45
// domain.owner['username'],
46
- appDir.length == 6?`${appDir[0]}-...-${appDir.slice(-1)}`:appDir.join('-')
+ appDir && (appDir.length == 6?`${appDir[0]}-...-${appDir.slice(-1)}`:appDir.join('-'))
47
]);
48
});
49
0 commit comments