From dbf639556b2dfa72e819bd47cfec6ce4646ef1f2 Mon Sep 17 00:00:00 2001 From: Alex Ioannidis Date: Mon, 11 Nov 2024 16:54:32 +0100 Subject: [PATCH] deposit-ui: fix creator affiliations selection display * Fixes a bug where the selected affiliations from the dropdown do not appear inside the input box. --- .../src/deposit/fields/AffiliationsField/AffiliationsField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/AffiliationsField/AffiliationsField.js b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/AffiliationsField/AffiliationsField.js index eac305cc2..ea7cd8c53 100644 --- a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/AffiliationsField/AffiliationsField.js +++ b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/AffiliationsField/AffiliationsField.js @@ -54,7 +54,7 @@ export class AffiliationsField extends Component { ); }} value={getIn(values, fieldPath, []).map( - (val) => val.id || val.text || val.name + (val) => val.name || val.text || val.id )} ref={selectRef} // Disable UI-side filtering of search results