fixing a check

This commit is contained in:
francesco 2020-11-02 17:03:38 +01:00
parent 3795e1f2db
commit c14d1e04b4
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ public class GeoPortalDataEntryApp implements EntryPoint {
public void onCreateNewProject(CreateNewProjectEvent newProjectEvent) {
//means the form was not submitted
if(savedMap.size()>0) {
if(savedMap.size()==0) {
boolean confirm = Window.confirm("Creating a new project, the current project (is not saved) and will be lost, Confirm?");
if(confirm)
buildNewCards(orderedCards);