Skip to content

Commit 1ccfe08

Browse files
authored
Merge pull request #499 from mapswipe/dashboard_fix
bugfix
2 parents 81fe064 + fc0ffad commit 1ccfe08

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

manager_dashboard/manager_dashboard/js/uploadProjects.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,12 @@ async function uploadToFirebase() {
197197
// get form data
198198
mapswipe_import = getFormInput()
199199
// upload projectDraft to firebase once image has been uploaded
200-
// if inputGeometries is a TMId, check if it is a valid project, only upload if it is
200+
201+
if (document.getElementById("projectType").value != "footprint"){
202+
uploadProjectImage(mapswipe_import);
203+
return;
204+
}
205+
201206
var modal = document.getElementById("uploadModal");
202207
modal.style.display = "block";
203208
var modalValidating = document.getElementById("modalValidating");

0 commit comments

Comments
 (0)