Skip to content

Commit

Permalink
Merge pull request #5 from KernelDeimos/fix/sites-when-no-appDir
Browse files Browse the repository at this point in the history
fix: ignore undefined appDir when listing sites
  • Loading branch information
bitsnaps authored Feb 7, 2025
2 parents f4ba764 + 1e3aa1d commit 745211e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/sites.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function listSites(args = {}) {
formatDate(domain.created_at).split(',')[0],
domain.protected ? chalk.red('Yes') : chalk.green('No'),
// domain.owner['username'],
appDir.length == 6?`${appDir[0]}-...-${appDir.slice(-1)}`:appDir.join('-')
appDir && (appDir.length == 6?`${appDir[0]}-...-${appDir.slice(-1)}`:appDir.join('-'))
]);
});

Expand Down

0 comments on commit 745211e

Please sign in to comment.