fix: flow args should always render in test flow

This commit is contained in:
Ruben Fiszel
2024-06-11 13:57:02 +02:00
parent eb068fd086
commit 1be0bfaf7b
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -192,7 +192,7 @@ pub async fn gen_lockfile(
async fn gen_bunfig(job_dir: &str) -> Result<()> {
let registry = NPM_CONFIG_REGISTRY.read().await.clone();
let bunfig_install_scopes = BUNFIG_INSTALL_SCOPES.read().await.clone();
Ok(if registry.is_some() || bunfig_install_scopes.is_some() {
if registry.is_some() || bunfig_install_scopes.is_some() {
let (url, token_opt) = if let Some(ref s) = registry {
let url = s.trim();
if url.is_empty() {
@@ -222,7 +222,8 @@ registry = {}
);
tracing::debug!("Writing following bunfig.toml: {bunfig_toml}");
let _ = write_file(&job_dir, "bunfig.toml", &bunfig_toml).await?;
})
}
Ok(())
}
pub async fn install_lockfile(
@@ -308,8 +308,9 @@
{/if}
<FlowProgressBar {job} bind:reset={jobProgressReset} />
</div>
<div class="overflow-y-auto grow flex flex-col pr-4">
<div class="max-h-1/2 overflow-auto border-b">
<div class="border-b">
<SchemaForm
noVariablePicker
compact