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 7da879c82..536d32b94 100644 --- a/src/lib/wizards/functions/steps/templateConfiguration.svelte +++ b/src/lib/wizards/functions/steps/templateConfiguration.svelte @@ -57,7 +57,7 @@ id="runtime" placeholder="Select runtime" required - disabled={options.length <= 1} + disabled={options.length < 1} {options} bind:value={$templateConfig.runtime} /> {/await}