Skip to content

Commit

Permalink
Fixes issue where Variables inputs didn't work when Advanced Variable…
Browse files Browse the repository at this point in the history
…s were present
  • Loading branch information
jdrodjpl committed Nov 14, 2024
1 parent e8c1e15 commit 66670fb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/routes/install/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,17 @@
$: Variables = product?.DefaultDeployment?.Variables?.Values || {};
$: AdvancedValues = product?.DefaultDeployment?.Variables?.AdvancedValues || {};
let varSetupDone = false;
$: {
Object.entries(Variables).forEach(([key, value]) => {
if (value) {
applicationMetadata.Variables[key] = value;
}
});
if (!varSetupDone && Object.keys(Variables).length) {
Object.entries(Variables).forEach(([key, value]) => {
if (value) {
applicationMetadata.Variables[key] = value;
}
});
varSetupDone = true;
}
}
let installInProgress = false;
Expand Down

0 comments on commit 66670fb

Please sign in to comment.