From e0398159d56c746edd06487834029331baa9ca8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anne=20L=27H=C3=B4te?= Date: Thu, 5 Dec 2024 09:09:13 +0100 Subject: [PATCH] fix(openalex): Restore excluded RORs /2 --- .../openalex-affiliations/results/index.jsx | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/client/src/pages/openalex-affiliations/results/index.jsx b/client/src/pages/openalex-affiliations/results/index.jsx index 7c05200..5fc2506 100644 --- a/client/src/pages/openalex-affiliations/results/index.jsx +++ b/client/src/pages/openalex-affiliations/results/index.jsx @@ -468,27 +468,29 @@ export default function Affiliations() { - - -
- - - Excluded RORs - -
-
- {body.excludedRors.split(' ').map((excludedRor) => ( - - {excludedRor} - - ))} -
- -
+ {(body.excludedRors.length > 0) && ( + + +
+ + + Excluded RORs + +
+
+ {body.excludedRors.split(' ').map((excludedRor) => ( + + {excludedRor} + + ))} +
+ +
+ )}