Browse Source

Map the other SSE

master
Dan 2 years ago
parent
commit
c8897cc43a
  1. 6
      packages/bridge-ui/src/app/components/season-standings/season-standings.component.ts

6
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 { 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,
@ -92,7 +94,9 @@ export class SeasonStandingsComponent {
for(let result of data.newStandings){ for(let result of data.newStandings){
sorted.push(result) sorted.push(result)
} }
let _entries = plainToClass(SeasonStanding, sorted, { excludeExtraneousValues: true, enableCircularCheck: true });
this.sortStandings(sorted); this.sortStandings(_entries);
} }
} }

Loading…
Cancel
Save