hmc-whisk / jsLDA

A React based version of jsLDA with brand new features added on
Other
0 stars 0 forks source link

Disable upload button when no file is selected #173

Closed xandaschofield closed 3 years ago

xandaschofield commented 3 years ago

I accidentally pressed the wrong "upload" button the other day and got a pop-up error "TypeError: Cannot read property '0' of undefined". It might be good to just disable upload buttons if nothing is chosen to upload or otherwise catch this.

Reproduce instructions:

  1. Start the app
  2. Open Configure... menu
  3. Without selecting a file, click "Upload" under the Model Configuration submenu

Side note: the layout of this is looking a bit odd to me right now.