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}