Skip to content

Commit 7fe7fad

Browse files
committed
fix: project init
1 parent 237e38b commit 7fe7fad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

templates/cli/lib/commands/init.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const initProject = async ({ organizationId, projectId, projectName } = {}) => {
8080

8181
localConfig.setProject(response['$id']);
8282
} else {
83-
localConfig.setProject(answers.project.id);
83+
localConfig.setProject(answers.project);
8484
}
8585

8686
success();

templates/cli/lib/config.js.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,16 @@ class Local extends Config {
333333
};
334334
}
335335

336-
setProject(projectId, projectName = '', projectSettings = {}) {
336+
setProject(projectId, projectName = '', projectSettings = undefined) {
337337
this.set("projectId", projectId);
338338

339339
if (projectName !== '') {
340340
this.set("projectName", projectName);
341341
}
342342

343+
if(projectSettings === undefined){
344+
return;
345+
}
343346

344347
const settings = {
345348
services: {

0 commit comments

Comments
 (0)