Skip to content

Commit

Permalink
fix(search): Clean warning in console about uncontrolled component
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Jan 22, 2025
1 parent 3b9cab2 commit 448939a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/openalex-affiliations/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function Search() {
getRorChildren: searchParams.get('getRorChildren') ?? '0',
startYear: searchParams.get('startYear') ?? DEFAULT_YEAR,
});
setExcludedRors(currentSearchParams.excludedRors);
setExcludedRors(searchParams.get('excludedRors') ?? '');
const newSearchedAffiliations = affiliations.filter(
(affiliation) => !searchedAffiliations.includes(affiliation),
);
Expand Down

0 comments on commit 448939a

Please sign in to comment.