Skip to content

Commit 1df9cc3

Browse files
Address issue with server templates evaluating unsupported values
1 parent 881b4b9 commit 1df9cc3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/remote-config/remote-config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ class ServerTemplateImpl implements ServerTemplate {
382382
// Iterates in order over condition list. If there is a value associated
383383
// with a condition, this checks if the condition is true.
384384
for (const [conditionName, conditionEvaluation] of evaluatedConditions) {
385+
385386
if (normalizedConditionalValues[conditionName] && conditionEvaluation) {
386387
parameterValueWrapper = normalizedConditionalValues[conditionName];
387388
break;
@@ -395,7 +396,9 @@ class ServerTemplateImpl implements ServerTemplate {
395396

396397
if (parameterValueWrapper) {
397398
const parameterValue = (parameterValueWrapper as ExplicitParameterValue).value;
398-
configValues[key] = new ValueImpl('remote', parameterValue);
399+
if (parameterValue !== undefined) {
400+
configValues[key] = new ValueImpl('remote', parameterValue);
401+
}
399402
continue;
400403
}
401404

0 commit comments

Comments
 (0)