|
|
@ -16,6 +16,8 @@ import { RacesService } from '../../services/races.service'; |
|
|
import { SeasonStanding } from '../../models/season-standing.model'; |
|
|
import { SeasonStanding } from '../../models/season-standing.model'; |
|
|
import { ServerSideEventsService } from '../../services/server-side-events.service'; |
|
|
import { ServerSideEventsService } from '../../services/server-side-events.service'; |
|
|
|
|
|
|
|
|
|
|
|
import { plainToClass } from 'class-transformer'; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
selector: 'app-season-standings', |
|
|
selector: 'app-season-standings', |
|
|
standalone: true, |
|
|
standalone: true, |
|
|
@ -93,6 +95,8 @@ export class SeasonStandingsComponent { |
|
|
sorted.push(result) |
|
|
sorted.push(result) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.sortStandings(sorted); |
|
|
let _entries = plainToClass(SeasonStanding, sorted, { excludeExtraneousValues: true, enableCircularCheck: true }); |
|
|
|
|
|
|
|
|
|
|
|
this.sortStandings(_entries); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|