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 0a7805f
Show file tree
Hide file tree
Showing 2 changed files with 5 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,15 @@ export const AffiliationsSuggestions = (creatibutors, isOrganization) => {

return {
text: creatibutor.name,
value: creatibutor.id || creatibutor.name,
name: creatibutor.id || creatibutor.name,
value: creatibutor.name,
name: creatibutor.name,
extra: creatibutor,
key: creatibutor.id,
id: creatibutor.id,
key: creatibutor.id, // Needed by RemoteSelectField to filter out unique values
content: (
<Overridable
id="ReactInvenioForms.AffiliationsSuggestions.content"
key={creatibutor.id}
creatibutor={creatibutor}
isOrganization={isOrganization}
idString={idString}
Expand Down

0 comments on commit 0a7805f

Please sign in to comment.