From 6f34c68d0674937a7a27d425ebec456b5eec69bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A4kinen=20Sasu=20S?= Date: Fri, 31 May 2019 11:42:39 +0300 Subject: [PATCH] actually USE the featuretoggle for countries in overview --- .../src/components/StudyProgramme/ThroughputTable/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/oodikone2-frontend/src/components/StudyProgramme/ThroughputTable/index.jsx b/services/oodikone2-frontend/src/components/StudyProgramme/ThroughputTable/index.jsx index 3dbec320aa..24567defb4 100644 --- a/services/oodikone2-frontend/src/components/StudyProgramme/ThroughputTable/index.jsx +++ b/services/oodikone2-frontend/src/components/StudyProgramme/ThroughputTable/index.jsx @@ -89,7 +89,7 @@ const ThroughputTable = ({ history, throughput, thesis, loading, error, studypro {genders.map(gender => )} Graduated overall Graduated in time - {countries.map(country => )} + {renderCountries ? countries.map(country => ) : null} @@ -123,11 +123,11 @@ const ThroughputTable = ({ history, throughput, thesis, loading, error, studypro {year.graduated} {year.inTargetTime} {year.transferred} - {countries.map(country => ( + {renderCountries ? countries.map(country => ( {year.countries[country] || 0} - ))} + )) : null} {Object.keys(year.creditValues).map(creditKey => ( {year.creditValues[creditKey]}