website refactor

This commit is contained in:
2026-01-12 01:01:49 +01:00
parent 5ca6023a5a
commit fefd8d1cd6
294 changed files with 4628 additions and 4991 deletions

View File

@@ -1,4 +1,4 @@
import { RaceWithSOFDTO } from '../types/generated/RaceWithSOFDTO';
import { RaceWithSOFDTO } from '@/lib/types/generated/RaceWithSOFDTO';
export class RaceWithSOFViewModel {
id: string;
@@ -8,6 +8,6 @@ export class RaceWithSOFViewModel {
constructor(dto: RaceWithSOFDTO) {
this.id = dto.id;
this.track = dto.track;
this.strengthOfField = (dto as any).strengthOfField ?? null;
this.strengthOfField = 'strengthOfField' in dto ? dto.strengthOfField ?? null : null;
}
}