Skip to content

Commit

Permalink
Merge pull request #46 from unity-sds/fix_vars
Browse files Browse the repository at this point in the history
Fixes issue where Variables inputs didn't work when Advanced Variable…
  • Loading branch information
jdrodjpl authored Nov 14, 2024
2 parents e8c1e15 + 66670fb commit 3c1a283
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 3c1a283

Please sign in to comment.