Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
carlinmack committed Sep 10, 2024
1 parent 8f8625a commit 1438fde
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import _isEmpty from "lodash/isEmpty";
import _isNull from "lodash/isNull";
import _isNumber from "lodash/isNumber";
import _isObject from "lodash/isObject";
import _map from "lodash/map";
import _mapValues from "lodash/mapValues";
import _pick from "lodash/pick";
import _pickBy from "lodash/pickBy";
Expand Down Expand Up @@ -335,10 +334,6 @@ class CommunityProfileForm extends Component {
}
};

serializeAffiliations = (organizations) => {
return AffiliationsSuggestions(organizations, true, false);
};

render() {
const {
types,
Expand Down Expand Up @@ -474,7 +469,9 @@ class CommunityProfileForm extends Component {
"metadata.organizations",
[]
)}
serializeSuggestions={this.serializeAffiliations}
serializeSuggestions={(organizations) => {
return AffiliationsSuggestions(organizations, true, false);
}}
label={
<FieldLabel
htmlFor="metadata.organizations"
Expand Down

0 comments on commit 1438fde

Please sign in to comment.