Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure only valid entity names are used on initial form state #3100

Merged

Conversation

cesarvarela
Copy link
Collaborator

@cesarvarela cesarvarela commented Sep 16, 2024

Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.96%. Comparing base (0ab7e4e) to head (1027a36).
Report is 1 commits behind head on staging.

Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #3100      +/-   ##
===========================================
- Coverage    79.18%   78.96%   -0.23%     
===========================================
  Files          165      166       +1     
  Lines        13267    13288      +21     
  Branches      1476     1530      +54     
===========================================
- Hits         10506    10493      -13     
- Misses        2467     2496      +29     
- Partials       294      299       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -166,15 +166,17 @@ const SubmissionEdit = ({ id }) => {
developers:
submission.developers === null
? []
: submission.developers.map((item) => item.name || item),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The submission had a harmed_party with an empty name and was causing the Tags component to crash:

image

I'm not a fan of using entity names instead of ids, but this works for now.

@kepae kepae merged commit 4725b95 into responsible-ai-collaborative:staging Sep 16, 2024
24 of 26 checks passed
@pdcp1 pdcp1 mentioned this pull request Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants