Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ikone into trunk
  • Loading branch information
sasumaki committed May 31, 2019
2 parents 6f34c68 + 2b2ea8b commit 041dd8e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const ThroughputTable = ({ history, throughput, thesis, loading, error, studypro
if (error) return <h1>Oh no so error {error}</h1>
const data = throughput && throughput.data ? throughput.data.filter(year => year.credits.length > 0) : []
const genders = data.length > 0 ? uniq(flatten(data.map(year => Object.keys(year.genders)))) : []
const countries = data.length > 0 && throughput.totals.countries ? uniq(flatten(data.map(year => Object.keys(year.countries)))) : []
const countries = data.length > 0 && throughput.totals.countries ? uniq(flatten(data.map(year => Object.keys(year.countries)))).sort() : []
const renderGenders = genders.length > 0
const renderCountries = false // countries.length > 0, disabled for now
let thesisTypes = []
Expand Down Expand Up @@ -67,7 +67,6 @@ const ThroughputTable = ({ history, throughput, thesis, loading, error, studypro
<Table.HeaderCell colSpan={genders.length + 1}>Students</Table.HeaderCell> :
<Table.HeaderCell rowSpan="2">Students</Table.HeaderCell>
}

<Table.HeaderCell colSpan="2">Graduated</Table.HeaderCell>

<Table.HeaderCell rowSpan="2">Transferred to this program</Table.HeaderCell>
Expand Down Expand Up @@ -158,7 +157,7 @@ const ThroughputTable = ({ history, throughput, thesis, loading, error, studypro
<Table.HeaderCell key={`${countryKey}total`}>
{throughput.totals.countries[countryKey]}
</Table.HeaderCell>
)) : null }
)) : null}
{Object.keys(throughput.totals.credits).map(creditKey => (
<Table.HeaderCell key={`${creditKey}total`}>{throughput.totals.credits[creditKey]}
</Table.HeaderCell>
Expand Down

0 comments on commit 041dd8e

Please sign in to comment.