From 637a1fcfb627416e8e163632991c09ade95370e2 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Sat, 6 Apr 2024 15:37:02 +0530 Subject: [PATCH] fix: show the runtime in the selector when only one exists. --- src/lib/wizards/functions/steps/templateConfiguration.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/wizards/functions/steps/templateConfiguration.svelte b/src/lib/wizards/functions/steps/templateConfiguration.svelte index 7da879c82..030380f73 100644 --- a/src/lib/wizards/functions/steps/templateConfiguration.svelte +++ b/src/lib/wizards/functions/steps/templateConfiguration.svelte @@ -25,6 +25,10 @@ return allowedRuntimes.includes(runtime.value); }); + if (options.length == 1) { + $templateConfig.runtime = options[0].value; + } + return options; }