fix: show select runtime placeholder.

This commit is contained in:
ItzNotABug committed 2024-05-03 15:59:23 +05:30
1 parent 7899eebafd
commit a5b98b59a3
2 files changed
+1 -9

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,
@@ -25,10 +25,6 @@
return allowedRuntimes.includes(runtime.value);
});
if (options.length == 1) {
$templateConfig.runtime = options[0].value;
}
return options;
}
</script>
@@ -61,7 +57,7 @@
id="runtime"
placeholder="Select runtime"
required
disabled={options.length <= 1}
disabled={options.length < 1}
{options}
bind:value={$templateConfig.runtime} />
{/await}