Merge pull request #1014 from ItzNotABug/fix-1011-show-a-default-runtime-when-length-is-one

Show Available Runtime When Only One Exists for Templates
This commit is contained in:
Steven Nguyen authored and GitHub committed 2024-05-15 09:41:21 -07:00
commit 2d2b23a87c
2 files changed
+1 -5

No files matched your search

-4
View File
@@ -7,10 +7,6 @@
variables[variable.name] = variable.value ?? '';
});
if (!runtime) {
runtime = template.runtimes[0].name;
}
templateStore.set(template);
templateConfig.set({
$id: null,
@@ -57,7 +57,7 @@
id="runtime"
placeholder="Select runtime"
required
disabled={options.length <= 1}
disabled={options.length < 1}
{options}
bind:value={$templateConfig.runtime} />
{/await}