diff --git a/src/routes/console/project-[project]/functions/+layout.ts b/src/routes/console/project-[project]/functions/+layout.ts index 9c1e53c79..68ecb719d 100644 --- a/src/routes/console/project-[project]/functions/+layout.ts +++ b/src/routes/console/project-[project]/functions/+layout.ts @@ -8,10 +8,15 @@ import type { LayoutLoad } from './$types'; export const load: LayoutLoad = async ({ depends }) => { depends(Dependencies.FUNCTION_INSTALLATIONS); + const [runtimesList, installations] = await Promise.all([ + sdk.forProject.functions.listRuntimes(), + sdk.forProject.vcs.listInstallations([Query.limit(100)]) + ]); + return { header: Header, breadcrumbs: Breadcrumbs, - runtimesList: sdk.forProject.functions.listRuntimes(), - installations: sdk.forProject.vcs.listInstallations([Query.limit(100)]) + runtimesList, + installations }; }; diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts b/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts index cf2a5f98b..818c56a6e 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts +++ b/src/routes/console/project-[project]/functions/function-[function]/settings/+page.ts @@ -31,8 +31,6 @@ export const load: PageLoad = async ({ params, depends }) => { return { variables, - globalVariables, - runtimesList: sdk.forProject.functions.listRuntimes(), - installations: sdk.forProject.vcs.listInstallations() + globalVariables }; };