Racepicks: Also fetch missing substitutions
This commit is contained in:
@ -5,6 +5,7 @@ import {
|
|||||||
fetch_racepicks,
|
fetch_racepicks,
|
||||||
fetch_raceresults,
|
fetch_raceresults,
|
||||||
fetch_races,
|
fetch_races,
|
||||||
|
fetch_substitutions,
|
||||||
} from "$lib/fetch";
|
} from "$lib/fetch";
|
||||||
import type { PageLoad } from "../$types";
|
import type { PageLoad } from "../$types";
|
||||||
|
|
||||||
@ -24,6 +25,7 @@ export const load: PageLoad = async ({ fetch, depends }) => {
|
|||||||
raceresults: fetch_raceresults(fetch),
|
raceresults: fetch_raceresults(fetch),
|
||||||
drivers: fetch_drivers(fetch),
|
drivers: fetch_drivers(fetch),
|
||||||
races: fetch_races(fetch),
|
races: fetch_races(fetch),
|
||||||
|
substitutions: fetch_substitutions(fetch),
|
||||||
|
|
||||||
currentrace: await fetch_currentrace(fetch),
|
currentrace: await fetch_currentrace(fetch),
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user