diff --git a/web/_js/draw.js b/web/_js/draw.js index 48c16b21..b07a591e 100644 --- a/web/_js/draw.js +++ b/web/_js/draw.js @@ -233,7 +233,7 @@ function initDraw() { objectInfoForm.addEventListener('submit', function(e) { e.preventDefault() // Allows for html form validation with preview button - if (e.submitter.value == "preview") { + if (e.submitter && e.submitter.value == "Preview") { preview() } else { exportJson() diff --git a/web/index.html b/web/index.html index 256a1d65..ec7a5809 100644 --- a/web/index.html +++ b/web/index.html @@ -333,8 +333,8 @@
Need Help?
- - + +