From cdf11fc2ba5f0d53e967f2eddd168501b378a6de Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 25 Mar 2025 18:00:26 +0100 Subject: [PATCH] Raceresults: Check for 0 pxxs in results table --- src/routes/data/raceresults/+page.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/data/raceresults/+page.svelte b/src/routes/data/raceresults/+page.svelte index 8ad61ae..f022d62 100644 --- a/src/routes/data/raceresults/+page.svelte +++ b/src/routes/data/raceresults/+page.svelte @@ -54,6 +54,8 @@ data_value_name: "pxxs", label: "Standing", valuefun: async (value: string): Promise => { + if (value.length === 0 || value === "") return ""; + const pxxs_array: string[] = value.toString().split(","); const pxxs_codes: string[] = await Promise.all( pxxs_array.map(