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 04fd9e59f35a8af6b15dda7d552152eab250d64b
parent 29399c1082bbf84800afa75949c07d0c441c5387
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Tue,  7 Mar 2023 21:50:03 +0100

fix: summary.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 @@ -41,7 +41,8 @@ async function getRatingSummary(heatId) { let ratings = await getRatingForHeatAndAthlete(i.heat, i.athlete.id) i.ratings = ratings.data - let summary = await supabase.from('rating_summary').select('rating_summary') + let summary = {data: []} + summary = await supabase.from('rating_summary').select('rating_summary') .eq('heat_id', heatId) .eq('athlete_id', i.athlete.id) i.summary = summary.data[0].rating_summary