From 433b019039baeb886cfd2b85b7a92277b730ed68 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Mon, 4 Sep 2023 17:21:12 -0700 Subject: [PATCH] Fix the update runtimes dropdown to show available runtimes --- .../function-[function]/settings/updateRuntime.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/console/project-[project]/functions/function-[function]/settings/updateRuntime.svelte b/src/routes/console/project-[project]/functions/function-[function]/settings/updateRuntime.svelte index 504847e583..b5c401fc4e 100644 --- a/src/routes/console/project-[project]/functions/function-[function]/settings/updateRuntime.svelte +++ b/src/routes/console/project-[project]/functions/function-[function]/settings/updateRuntime.svelte @@ -10,6 +10,7 @@ import { onMount } from 'svelte'; import { func } from '../store'; import InputSelect from '$lib/elements/forms/inputSelect.svelte'; + import { runtimesList } from '$routes/console/project-[project]/functions/store'; const functionId = $page.params.function; let runtime: string = null; @@ -19,7 +20,7 @@ onMount(async () => { runtime ??= $func.runtime; - let runtimes = await $page.data.runtimes; + let runtimes = await $runtimesList; options = runtimes.runtimes.map((runtime) => ({ label: `${runtime.name} - ${runtime.version}`, value: runtime.$id