diff --git a/client/src/pages/openalex-ror/results/list-view.jsx b/client/src/pages/openalex-ror/results/list-view.jsx index 4f69bc6..b27282a 100644 --- a/client/src/pages/openalex-ror/results/list-view.jsx +++ b/client/src/pages/openalex-ror/results/list-view.jsx @@ -57,7 +57,17 @@ export default function ListView({ }
- + { + if (selectedOpenAlex.some((a) => a.key === affiliation.key)) { + setSelectedOpenAlex(selectedOpenAlex.filter((a) => a.key !== affiliation.key)); + } else { + setSelectedOpenAlex([...selectedOpenAlex, affiliation]); + } + }} + style={{ cursor: 'pointer' }} + >