fix: project creation wrong check for existing

This commit is contained in:
Johannes Millan 2018-03-11 17:48:20 +01:00
parent aca67925c2
commit 7fcefb8da5

View file

@ -70,7 +70,8 @@
this.createNewFromCurrent = (projectTitle) => {
const projects = this.getListWithLsData();
if (projects) {
if (projects && projects.length > 0) {
SimpleToast('ERROR', 'ERROR: There is already a project');
return;
}