Skip to content

Commit

Permalink
feat(openalex): Reset selected state for affiliations when adding RORs
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Nov 28, 2024
1 parent 824757c commit 6968323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/openalex-ror/results/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,10 @@ export default function Affiliations() {
return {
...affiliation,
addList: [...affiliation.addList, cleanRor],
selected: false,
};
}
affiliation.selected = false;
return affiliation;
});
setAffiliations(updatedAffiliations);
Expand All @@ -364,8 +366,6 @@ export default function Affiliations() {
setAffiliations(updatedAffiliations);
};

console.log(filteredAffiliations);

const getUniqueRors = () => {
const selectedRors = {};
const selectedAffiliations = filteredAffiliations.filter((affiliation) => affiliation.selected);
Expand Down

0 comments on commit 6968323

Please sign in to comment.