Skip to content

fix(jamboree): Fix team filtering

Issue

The Jamboree Medal page for the past three years(2021-2023, https://jamboree.igem.org/2023/results#medals) is missing High School teams. This issue likely arises from the discrepancy between the backend data, where team sections are represented in slug format, and the enum values, which use underscores.

Solution

  • In the filter, use enum values instead of property names.
  • Modify the HIGH_SCHOOL property in the WinnerGroup enum to match the slug format, aligning it with the strings in the TeamSection enum (located in packages/utils/state/models/teamsModel.ts).

Preview

image image

Edited by Tianyi Liang

Merge request reports