Merge pull request #528 from appwrite/fix-6121-runtimes-dropdown

Fix the update runtimes dropdown to show available runtimes
This commit is contained in:
Christy Jacob authored and GitHub committed 2023-09-06 00:24:33 -04:00
commit e7d4f2e129
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