myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests | README | LICENSE

commit 29399c1082bbf84800afa75949c07d0c441c5387
parent d280099f0a2e9526e2bff0c0cae5aca793dfd6e1
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Tue,  7 Mar 2023 21:38:47 +0100

fix: startlist.data is null

Diffstat:
Msrc/App.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/App.js b/src/App.js @@ -34,7 +34,8 @@ async function getRatingForHeatAndAthlete(heatId, athleteId) { } async function getRatingSummary(heatId) { - let startlist = await getStartlistForHeat(heatId) + let startlist = {data: []} + startlist = await getStartlistForHeat(heatId) return Promise.all(startlist.data.map(async i => { let ratings = await getRatingForHeatAndAthlete(i.heat, i.athlete.id)