Skip to content

Commit

Permalink
fix(search): "Remove all affiliations" should also remove the deleted…
Browse files Browse the repository at this point in the history
…Affiliations
  • Loading branch information
annelhote committed Dec 10, 2024
1 parent 1dc87f8 commit 5d0b84b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/src/pages/datasets/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export default function DatasetsSearch() {
setSearchParams({
...currentSearchParams,
affiliations: [],
deletedAffiliations: [],
});
setSearchedAffiliations([]);
};
Expand Down
1 change: 1 addition & 0 deletions client/src/pages/openalex-affiliations/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export default function OpenalexAffiliationsSearch() {
setSearchParams({
...currentSearchParams,
affiliations: [],
deletedAffiliations: [],
});
setSearchedAffiliations([]);
};
Expand Down
1 change: 1 addition & 0 deletions client/src/pages/publications/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export default function PublicationsSearch() {
setSearchParams({
...currentSearchParams,
affiliations: [],
deletedAffiliations: [],
});
setSearchedAffiliations([]);
};
Expand Down

0 comments on commit 5d0b84b

Please sign in to comment.