Skip to content

Commit 7fcefb8

Browse files
committed
fix: project creation wrong check for existing
1 parent aca6792 commit 7fcefb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app-src/scripts/main/global-services/projects-s.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070

7171
this.createNewFromCurrent = (projectTitle) => {
7272
const projects = this.getListWithLsData();
73-
if (projects) {
73+
74+
if (projects && projects.length > 0) {
7475
SimpleToast('ERROR', 'ERROR: There is already a project');
7576
return;
7677
}

0 commit comments

Comments
 (0)