Skip to content

Commit

Permalink
fix: year bugs and some hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal committed Jan 3, 2025
1 parent be9882a commit 0530637
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
evaluation,
metaevaluation,
homepage,
trackingpage,
facultymonitoringoverview,
]
name: Run tests
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ const MonitoringOverview = ({ t, lang, faculties }) => {
[faculties, lang],
)

// hard coded for this form to get year 2024 answers
useEffect(() => {
setRadioFilter('all')
dispatch(getAllTempAnswersAction())
if (!answers) {
dispatch(getTempAnswersAfterDeadline(formKeys.FACULTY_MONITORING, year))
}
dispatch(getTempAnswersAfterDeadline(formKeys.FACULTY_MONITORING, year))
}, [selectedLevel])

if (!answers) return <Loader active />
if (!answers || !faculties) return <Loader active />

const getAnswer = (part, faculty) => {
const answer = answers.find(a => a.programme === faculty)
Expand Down
2 changes: 1 addition & 1 deletion client/components/OverviewPage/ColorTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const ColorTable = React.memo(

useEffect(() => {
dispatch(getAllTempAnswersAction())
if (form !== formKeys.META_EVALUATION) dispatch(getAnswersActionAll())
dispatch(getAnswersActionAll())
if (isAdmin(currentUser)) dispatch(getProgrammeOwners())
}, [])

Expand Down

0 comments on commit 0530637

Please sign in to comment.