From 1ee97c7414374a080b38912f0963444380c7a5d5 Mon Sep 17 00:00:00 2001 From: Fatimah Zulfiqar Date: Mon, 9 Dec 2024 16:36:24 +0100 Subject: [PATCH] affiliations: update AffiliationsField value --- .../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 ea7cd8c53..79a8b8837 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.name || val.text || val.id + (val) => val.id || val.name || val.text )} ref={selectRef} // Disable UI-side filtering of search results