Skip to content

Commit

Permalink
show new numbers in overview
Browse files Browse the repository at this point in the history
  • Loading branch information
esakemp committed Jun 4, 2019
1 parent d6558a9 commit b5a1953
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ProductivityTable = ({ productivity, thesis, loading, error, studyprogramm
if (thesis) {
thesisTypes = thesis.map(t => t.thesisType)
}
const headerList = ['Year', 'Credits', thesisTypes.includes('MASTER') && 'Masters Thesis', thesisTypes.includes('BACHELOR') && 'Bachelors Thesis', 'Graduated'].filter(_ => _)
const headerList = ['Year', 'Credits', thesisTypes.includes('MASTER') && 'Masters Thesis', thesisTypes.includes('BACHELOR') && 'Bachelors Thesis', 'Graduated', 'Credits given to students in selected programme'].filter(_ => _)

const refresh = () => {
callApi('/v2/studyprogrammes/productivity/recalculate', 'get', null, { code: studyprogramme })
Expand Down Expand Up @@ -69,8 +69,7 @@ const ProductivityTable = ({ productivity, thesis, loading, error, studyprogramm
<Table.Cell>{year.mThesis}</Table.Cell>
)}
<Table.Cell>{year.graduated}</Table.Cell>
{/* <Table.Cell>{year.creditsForPercetage}</Table.Cell> */}

<Table.Cell>{year.creditsForPercentage}</Table.Cell>
</Table.Row>
))
: null}
Expand All @@ -90,7 +89,7 @@ ProductivityTable.propTypes = {
mThesis: number,
bThesis: number,
graduated: number,
creditsForPercetage: number
creditsForPercentage: number
}))
}),
thesis: arrayOf(shape({
Expand Down

0 comments on commit b5a1953

Please sign in to comment.