diff --git a/packages/bridge-ui/src/app/components/season-standings/season-standings.component.ts b/packages/bridge-ui/src/app/components/season-standings/season-standings.component.ts index 4c94644..7db2d98 100644 --- a/packages/bridge-ui/src/app/components/season-standings/season-standings.component.ts +++ b/packages/bridge-ui/src/app/components/season-standings/season-standings.component.ts @@ -16,6 +16,8 @@ import { RacesService } from '../../services/races.service'; import { SeasonStanding } from '../../models/season-standing.model'; import { ServerSideEventsService } from '../../services/server-side-events.service'; +import { plainToClass } from 'class-transformer'; + @Component({ selector: 'app-season-standings', standalone: true, @@ -92,7 +94,9 @@ export class SeasonStandingsComponent { for(let result of data.newStandings){ sorted.push(result) } + + let _entries = plainToClass(SeasonStanding, sorted, { excludeExtraneousValues: true, enableCircularCheck: true }); - this.sortStandings(sorted); + this.sortStandings(_entries); } }