File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
apps/desktop/src/components Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 136
136
try {
137
137
const project = await projectsService .addProject ();
138
138
if (! project ) {
139
- throw new Error (' Failed to add project.' );
139
+ // User cancelled the project creation
140
+ newProjectLoading = false ;
141
+ return ;
140
142
}
141
143
goto (projectPath (project .id ));
142
144
} finally {
Original file line number Diff line number Diff line change 14
14
shortcutService .on (' add-local-repo' , async () => {
15
15
const project = await projectsService .addProject ();
16
16
if (! project ) {
17
- throw new Error (' Failed to add project.' );
17
+ // User cancelled the project creation
18
+ return ;
18
19
}
19
20
goto (projectPath (project .id ));
20
21
}),
Original file line number Diff line number Diff line change 49
49
try {
50
50
const project = await projectsService .addProject ();
51
51
if (! project ) {
52
- throw new Error (' Failed to add project.' );
52
+ // User cancelled the project creation
53
+ newProjectLoading = false ;
54
+ return ;
53
55
}
54
56
goto (projectPath (project .id ));
55
57
} finally {
You can’t perform that action at this time.
0 commit comments