Skip to content

Commit

Permalink
components: add id and remove other variables
Browse files Browse the repository at this point in the history
  • Loading branch information
carlinmack committed Aug 30, 2024
1 parent 5503004 commit cefad12
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ const makeSubheader = (creatibutor, isOrganization) => {
export const AffiliationsSuggestions = (
creatibutors,
isOrganization,
showPersonForm,
autocompleteNames,
NamesAutocompleteOptions
showManualEntry,

Check failure on line 70 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Delete `,`

Check failure on line 70 in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Delete `,`
) => {
const results = creatibutors.map((creatibutor) => {
// ensure `affiliations` and `identifiers` are present
Expand All @@ -91,6 +89,7 @@ export const AffiliationsSuggestions = (
value: creatibutor.id,
extra: creatibutor,
key: creatibutor.id,
id: creatibutor.id,
content: (
<Header>
{name} {idString.length ? <>({idString})</> : null}
Expand All @@ -100,9 +99,6 @@ export const AffiliationsSuggestions = (
};
});

const showManualEntry =
autocompleteNames === NamesAutocompleteOptions.SEARCH_ONLY && !showPersonForm;

if (showManualEntry) {
results.push({
text: "Manual entry",
Expand Down

0 comments on commit cefad12

Please sign in to comment.