Skip to content

Commit 08ba4b0

Browse files
committed
refactor: initialize an empty list if no existing apps
1 parent f0b3063 commit 08ba4b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.suite-cli/cli/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ program
236236
]).then((answers) => actionHandlers.scaffoldNewLibrary({ answers: { ...answers, private: false } }))
237237
break
238238
case 'app':
239-
const existing_apps = getExistingComponent({ key: 'apps', currentDir: cwd() })
239+
const existing_apps = getExistingComponent({ key: 'apps', currentDir: cwd() })||[]
240240
const formatServiceName = (service) => `${service.name}: ${service.port}`;
241241
prompt([
242242
{

0 commit comments

Comments
 (0)