From e49b0b55ce5b8f6e3c8b79cf7e6100d0cfd5a31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anne=20L=27H=C3=B4te?= Date: Fri, 22 Nov 2024 17:37:35 +0100 Subject: [PATCH] fix(openalex): Display added RORs --- client/src/pages/openalex-ror/results/index.jsx | 2 +- client/src/pages/openalex-ror/results/list-view.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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({
-
+ ))}