Skip to content

Commit

Permalink
fix: ignore undefined appDir when listing sites
Browse files Browse the repository at this point in the history
Not all sites need to have an associated app directory. The case when
they didn't was causing an error to be thrown.
  • Loading branch information
KernelDeimos committed Feb 6, 2025
1 parent f0cf652 commit 1e3aa1d
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 1e3aa1d

Please sign in to comment.