diff --git a/client/src/pages/openalex-ror/results/index.jsx b/client/src/pages/openalex-ror/results/index.jsx index 57b5297..6000d3a 100644 --- a/client/src/pages/openalex-ror/results/index.jsx +++ b/client/src/pages/openalex-ror/results/index.jsx @@ -103,7 +103,7 @@ export default function Affiliations() { const selectedOpenAlexTmp = selectedOpenAlex.map((item) => { const rorsToCorrect = [...item.rorsToCorrect, ...rorsToAdd].map((rorToCorrect) => ({ ...rorToCorrect, - action: removeList.includes(rorToCorrect.rorId) ? 'remove' : undefined, + action: removeList.includes(rorToCorrect.rorId) ? 'remove' : rorToCorrect?.action, })); const hasCorrection = rorsToCorrect.filter((rorToCorrect) => rorToCorrect?.action).length > 0; return { ...item, hasCorrection, rorsToCorrect }; diff --git a/client/src/pages/openalex-ror/results/list-view.jsx b/client/src/pages/openalex-ror/results/list-view.jsx index 3946063..82fbf99 100644 --- a/client/src/pages/openalex-ror/results/list-view.jsx +++ b/client/src/pages/openalex-ror/results/list-view.jsx @@ -35,7 +35,6 @@ export default function ListView({
-
+ ))}