Skip to content

Commit

Permalink
affiliations: fix serialization values
Browse files Browse the repository at this point in the history
* Fixes a bug where dropdown values with the same title/name but
  different unique identifiers would be mixed after selection and only
  the first one would be actually selected for its value.
  • Loading branch information
slint committed Nov 23, 2024
1 parent af27acb commit 18dbf6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ export const AffiliationsSuggestions = (creatibutors, isOrganization) => {

return {
text: creatibutor.name,
value: creatibutor.name,
value: creatibutor.id || creatibutor.name,
name: creatibutor.id || creatibutor.name,
extra: creatibutor,
name: creatibutor.name,
key: creatibutor.id,
id: creatibutor.id,
content: (
Expand Down

0 comments on commit 18dbf6d

Please sign in to comment.