From c8897cc43ae98293351622679e11648788849610 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 9 Jan 2024 15:37:51 +0000 Subject: [PATCH] Map the other SSE --- .../season-standings/season-standings.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } }