fix: runtime not being applied

This commit is contained in:
Arman committed 2025-04-07 11:32:27 +02:00
1 parent 82a0b3053a
commit 4f0a93ce12
1 file changed
+5 -5
@@ -69,9 +69,6 @@
let specification = specificationOptions[0].value;
onMount(async () => {
if (page.url.searchParams.has('runtime')) {
runtime = page.url.searchParams.get('runtime') as Runtime;
}
if (!$installation?.$id) {
$installation = data.installations.installations[0];
}
@@ -87,7 +84,11 @@
const versionB = b.split('-')[1];
return versionB.localeCompare(versionA, undefined, { numeric: true });
});
runtime = matchingRuntimes[0];
if (page.url.searchParams.has('runtime')) {
runtime = page.url.searchParams.get('runtime') as Runtime;
} else {
runtime = matchingRuntimes[0];
}
}
});
@@ -249,7 +250,6 @@
bind:specification
{specificationOptions}
{options} />
<Permissions
templateScopes={data.template.scopes}
bind:selectedScopes