Skip to content

Commit 125c5bb

Browse files
committed
affiliations: fix dropdown values
* Fixes the values required by the RemoteSelectField to be able to display selected entries consistently.
1 parent 879b0dd commit 125c5bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ export const AffiliationsSuggestions = (creatibutors, isOrganization) => {
9090

9191
return {
9292
text: creatibutor.name,
93-
value: creatibutor.id || creatibutor.name,
94-
name: creatibutor.id || creatibutor.name,
93+
value: creatibutor.name,
9594
extra: creatibutor,
96-
key: creatibutor.id,
9795
id: creatibutor.id,
96+
key: creatibutor.id, // Needed by RemoteSelectField to filter out unique values
9897
content: (
9998
<Overridable
10099
id="ReactInvenioForms.AffiliationsSuggestions.content"
100+
key={creatibutor.id}
101101
creatibutor={creatibutor}
102102
isOrganization={isOrganization}
103103
idString={idString}

0 commit comments

Comments
 (0)