mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: show select runtime placeholder.
This commit is contained in:
1 parent
7899eebafd
commit
a5b98b59a3
2 files changed
+1
-9
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user