Skip to content

Commit

Permalink
affiliations: fix dropdown values
Browse files Browse the repository at this point in the history
* Fixes the values required by the RemoteSelectField to be able to
  display selected entries consistently.
  • Loading branch information
slint committed Nov 28, 2024
1 parent 879b0dd commit 516967e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ export const AffiliationsSuggestions = (creatibutors, isOrganization) => {

return {
text: creatibutor.name,
value: creatibutor.id || creatibutor.name,
name: creatibutor.id || creatibutor.name,
value: creatibutor.name,
extra: creatibutor,
key: creatibutor.id,
id: creatibutor.id,
key: creatibutor.id, // Needed by RemoteSelectField to filter out unique values

Check failure on line 96 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Delete `·`
content: (
<Overridable
id="ReactInvenioForms.AffiliationsSuggestions.content"
key={creatibutor.id}
creatibutor={creatibutor}
isOrganization={isOrganization}
idString={idString}
Expand Down

0 comments on commit 516967e

Please sign in to comment.