diff --git a/extensions/resource-deployment/src/ui/modelViewUtils.ts b/extensions/resource-deployment/src/ui/modelViewUtils.ts index b83332eca2..6d7c6cdcd8 100644 --- a/extensions/resource-deployment/src/ui/modelViewUtils.ts +++ b/extensions/resource-deployment/src/ui/modelViewUtils.ts @@ -371,7 +371,8 @@ async function hookUpDynamicEnablement(context: WizardPageContext): Promise { const targetComponentValue = await targetComponent.getValue(); - fieldComponent.component.enabled = targetComponentValue === targetValue; + const valuesMatch = targetComponentValue === targetValue; + fieldComponent.component.enabled = valuesMatch; const isRequired = fieldComponent.component.enabled === false ? false : field.required; if (fieldComponent.labelComponent) { fieldComponent.labelComponent.requiredIndicator = isRequired; @@ -380,6 +381,12 @@ async function hookUpDynamicEnablement(context: WizardPageContext): Promise { updateFields();