Skip to content

Commit

Permalink
[Faculties] Update headers in 'Students of the faculty' table
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Jul 31, 2024
1 parent 51d1f6b commit 676d9dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ export const BasicOverview = ({
const creditSortingTitles = ['Code', 'Total', 'Degree', 'Exchange', 'Open uni', 'Transferred']
if (showAll) creditSortingTitles.splice(5, 0, 'Other uni', 'Separate')

const transferShortTitles = ['Code', 'Started', 'Graduated']
const transferShortTitles = ['Code', 'Started', 'Accepted', 'Graduated']
if (special === 'SPECIAL_INCLUDED') {
transferShortTitles.push('Transferred in', 'Transferred away', 'Transferred to')
transferShortTitles.push('Transferred out', 'Transferred into')
}

const options = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export const InteractiveDataTable = ({
color={sorter === sorterName ? 'blue' : 'black'}
content={sorterName}
data-cy={`Menu-${cypress}-${sorterName}`}
icon={sortDir === 1 ? 'triangle down' : 'triangle up'}
icon={sortDir === -1 && sorter === sorterName ? 'triangle up' : 'triangle down'}
key={sorterName}
onClick={() => handleClick(sorterName, nameIndex)}
style={{ borderRadius: '1px', fontSize: '14px', padding: '0 10px' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const MedianDisplay = ({
universityMode={universityMode}
yearLabel={yearLabel}
/>
{!programmeData ? (
{!programmeData || !(year in levelProgrammeData) ? (
<div className="graduations-message">
<Message compact>
Click a bar to view that year's {universityMode ? 'faculty' : 'programme'} level breakdown
Expand All @@ -57,7 +57,7 @@ const MedianDisplay = ({
) : (
<MedianBarChart
classSizes={classSizes?.programmes}
data={levelProgrammeData[year]?.data}
data={levelProgrammeData[year].data}
facultyGraph={false}
goal={goal}
goalExceptions={goalExceptions}
Expand Down

0 comments on commit 676d9dd

Please sign in to comment.