From a5b98b59a35ef325b5dff0d674e6df23eb5a4583 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Fri, 3 May 2024 15:59:23 +0530 Subject: [PATCH] fix: show select runtime placeholder. --- src/lib/wizards/functions/cover.svelte | 4 ---- .../wizards/functions/steps/templateConfiguration.svelte | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib/wizards/functions/cover.svelte b/src/lib/wizards/functions/cover.svelte index bcc19f123..08a18f119 100644 --- a/src/lib/wizards/functions/cover.svelte +++ b/src/lib/wizards/functions/cover.svelte @@ -7,10 +7,6 @@ variables[variable.name] = variable.value ?? ''; }); - if (!runtime) { - runtime = template.runtimes[0].name; - } - templateStore.set(template); templateConfig.set({ $id: null, diff --git a/src/lib/wizards/functions/steps/templateConfiguration.svelte b/src/lib/wizards/functions/steps/templateConfiguration.svelte index 030380f73..536d32b94 100644 --- a/src/lib/wizards/functions/steps/templateConfiguration.svelte +++ b/src/lib/wizards/functions/steps/templateConfiguration.svelte @@ -25,10 +25,6 @@ return allowedRuntimes.includes(runtime.value); }); - if (options.length == 1) { - $templateConfig.runtime = options[0].value; - } - return options; } @@ -61,7 +57,7 @@ id="runtime" placeholder="Select runtime" required - disabled={options.length <= 1} + disabled={options.length < 1} {options} bind:value={$templateConfig.runtime} /> {/await}