diff --git a/services/frontend/src/components/FilterView/filters/studyTrack.jsx b/services/frontend/src/components/FilterView/filters/studyTrack.jsx index 95383ab5e4..5930117739 100644 --- a/services/frontend/src/components/FilterView/filters/studyTrack.jsx +++ b/services/frontend/src/components/FilterView/filters/studyTrack.jsx @@ -7,7 +7,7 @@ import { Dropdown, Form } from 'semantic-ui-react' import { useLanguage } from '@/components/LanguagePicker/useLanguage' import { createFilter } from './createFilter' -const StudyTrackFilterCard = ({ options, onOptionsChange, withoutSelf, activeAt, code }) => { +const StudyTrackFilterCard = ({ activeAt, code, onOptionsChange, options, withoutSelf }) => { const { selected } = options const { getTextIn } = useLanguage() @@ -72,7 +72,7 @@ export const studyTrackFilter = createFilter({ defaultOptions: { selected: [], }, - isActive: ({ selected }) => selected.length > 0, + isActive: ({ selected }) => (selected !== undefined ? selected.length > 0 : false), filter: (student, { selected, args }) => { const activeAt = _.get(args, 'activeAt', moment()) diff --git a/services/frontend/src/components/PopulationStatistics/index.jsx b/services/frontend/src/components/PopulationStatistics/index.jsx index 2af422fd43..ac7e7fd827 100644 --- a/services/frontend/src/components/PopulationStatistics/index.jsx +++ b/services/frontend/src/components/PopulationStatistics/index.jsx @@ -151,7 +151,10 @@ export const PopulationStatistics = () => { const noStudentsMessage = () => (