+ <>
{autocompleteNames !== NamesAutocompleteOptions.OFF && (
options}
suggestionAPIUrl="/api/names"
- serializeSuggestions={this.serializeSuggestions}
+ serializeSuggestions={this.serializeAffiliations}
onValueChange={this.onPersonSearchChange}
ref={this.namesAutocompleteRef}
/>
)}
{showPersonForm && (
-
+ <>
-
+ >
)}
-
+ >
) : (
<>
{autocompleteNames !== NamesAutocompleteOptions.OFF && (
@@ -643,7 +544,7 @@ export class CreatibutorsModal extends Component {
// Disable UI-side filtering of search results
search={(options) => options}
suggestionAPIUrl="/api/affiliations"
- serializeSuggestions={this.serializeSuggestions}
+ serializeSuggestions={this.serializeAffiliations}
onValueChange={this.onOrganizationSearchChange}
/>
)}
@@ -678,18 +579,16 @@ export class CreatibutorsModal extends Component {
{(_get(values, typeFieldPath) === CREATIBUTOR_TYPE.ORGANIZATION ||
(showPersonForm &&
_get(values, typeFieldPath) === CREATIBUTOR_TYPE.PERSON)) && (
-