diff --git a/components/EventItemView.tsx b/components/EventItemView.tsx index c00ff5b..890da5d 100644 --- a/components/EventItemView.tsx +++ b/components/EventItemView.tsx @@ -17,7 +17,6 @@ const EventItemView: React.FC = ({ material, item, problems }) = let name = `Error: ${item.section}` let key = item.id let indent = 0 - let itemProblems: string[] = [] if (split.length === 4) { const [repo, theme, course, section] = split @@ -44,7 +43,6 @@ const EventItemView: React.FC = ({ material, item, problems }) = } let isCompleted = false let completedLabel = "" - const uniqueUsers = new Set() let uniqueUsersCount = 0 if (problems !== undefined && itemProblems.length > 0) { diff --git a/pages/event/[eventId]/[eventGroupId].tsx b/pages/event/[eventId]/[eventGroupId].tsx index fd6af7f..2e97488 100644 --- a/pages/event/[eventId]/[eventGroupId].tsx +++ b/pages/event/[eventId]/[eventGroupId].tsx @@ -92,25 +92,25 @@ const EventGroupPage: NextPage = ({ material, event, eventGroup const sectionsOptions = material.themes.flatMap((theme) => { return [ { - value: `${theme.id}`, - label: `${theme.name}`, + value: `${theme.repo}.${theme.id}`, + label: `${theme.repo} - ${theme.name}`, }, ].concat( theme.courses.flatMap((course) => { return [ { - value: `${theme.id}.${course.id}`, - label: `${theme.name} - ${course.name}`, + value: `${theme.repo}.${theme.id}.${course.id}`, + label: `${theme.repo} - ${theme.name} - ${course.name}`, }, ].concat( course.sections.map((section) => { const tags = section.tags.join(", ") - let label = `${theme.name} - ${course.name} - ${section.name}` + let label = `${theme.repo} - ${theme.name} - ${course.name} - ${section.name}` if (tags.length > 0) { label = `${label} [${tags}]` } return { - value: `${theme.id}.${course.id}.${section.id}`, + value: `${theme.repo}.${theme.id}.${course.id}.${section.id}`, label, } })