Fix: show error
This commit is contained in:
parent
79399032d6
commit
146e3dd6c2
2 changed files with 8 additions and 0 deletions
|
@ -28,4 +28,5 @@ export interface RouteNames {
|
|||
export interface SpeedCompetitionCategoryResult extends Competiton {
|
||||
route_names: RouteNames;
|
||||
participants: ParticipantFromApi[];
|
||||
route_order: string;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ export default function SpeedFlowchartPage() {
|
|||
r.categorys.filter(cat => cat.GrpId === categoryId)[0].name
|
||||
}`,
|
||||
);
|
||||
|
||||
const flowchartResult = convertResultsToSpeedFlowchartResult(r);
|
||||
console.log(flowchartResult);
|
||||
setFlowchartResult(flowchartResult);
|
||||
|
@ -75,6 +76,12 @@ export default function SpeedFlowchartPage() {
|
|||
</Grid>
|
||||
</Grid>
|
||||
))}
|
||||
|
||||
{flowchartResult === undefined && (
|
||||
<Grid item xs={12} className={'center-children'}>
|
||||
This competition or category does not have a speed tree!
|
||||
</Grid>
|
||||
)}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue