ClinGen / stanford-affils

Stanford ClinGen's affiliations service
MIT License
0 stars 0 forks source link

bug: crashing when attempting to add new affiliation #110

Closed sanchegm closed 1 month ago

sanchegm commented 1 month ago

Describe the bug When you attempt to save a new affiliation, and have GCEP or VCEP selected as the type, if curation panel ID is not provided, the website crashes and below screenshotted error is displayed. This also occurs if you attempt to save a new affiliation and a required field (affiliation ID or full name) are not provided.

To Reproduce Steps to reproduce the behavior:

  1. Go to add a new affiliation.
  2. Immediately hit save without adding any additional values. or
  3. Go to add a new affiliation.
  4. Select "Variant Curation Expert Panel" or "Gene Curation Expert Panel" for type.
  5. Provide valid Affiliation ID and Full Name.
  6. Do not provide curation panel ID.
  7. hit save.

Expected behavior The expected behavior is for the respective validation message to display on the screen so that the user can fix the issue and then save.

Screenshots Error message:

Screenshot 2024-08-05 at 1 06 38 PM

Desktop (please complete the following information):