Fix the update runtimes dropdown to show available runtimes

This commit is contained in:
Steven Nguyen committed 2023-09-04 17:21:12 -07:00
1 parent 88b6d59051
commit 433b019039
1 file changed
+2 -1
@@ -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