From 516967e4f9626d7b984659778d8afc27fbafb105 Mon Sep 17 00:00:00 2001 From: Alex Ioannidis Date: Thu, 28 Nov 2024 21:23:36 +0100 Subject: [PATCH] affiliations: fix dropdown values * Fixes the values required by the RemoteSelectField to be able to display selected entries consistently. --- package-lock.json | 2 +- .../contrib/invenioRDM/records/AffiliationsSuggestions.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b75287e8..eb599f7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "react-invenio-forms", - "version": "4.4.0", + "version": "4.5.0", "license": "MIT", "devDependencies": { "@babel/cli": "^7.5.0", diff --git a/src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js b/src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js index 560252fa..3a230812 100644 --- a/src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js +++ b/src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js @@ -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 content: (