web4bio / webgen

WebGen Vertically Integrated Project
https://web4bio.github.io/webgen/main/html/
11 stars 26 forks source link

validate user input #304

Closed kaczmarj closed 3 years ago

kaczmarj commented 3 years ago

currently, we don't seem to validate whether the user has selected a tumor type. pressing submit with an empty tumor type will result in an error

Uncaught (in promise) TypeError: allData is undefined

in the console, but the user is never alerted. we should validate that the user has input at least something before making requests. if the user has not provided enough for us to make a request, we should provide the user with a helpful message.

kaczmarj commented 3 years ago

fixed by #308