title: I want to update my FormGroup with a If condition
body: <p>This is my FormGroup</p>
  
  <pre><code>repairFacilityForm = new FormGroup({
  
  languageTypeId: new FormControl("", Validators.required),
  repairFacilityId: new FormControl(""),
  timeZone: new FormControl("", Validators.required),
  name: new FormControl("", Validators.required),
  address: new FormControl("", Validators.required),
  branch: new FormControl(""),
  </code></pre>
  
  <p>})</p>
  
  <p>I want to update this branch as a required one inside an If condition.I tried to like this</p>
  
  <pre><code>  if(distributorId &gt; 0) {
  
      this.repairFacilityForm = new FormGroup({
        branch: new FormControl("", Validators.required)
  
    });
  </code></pre>
  
  <p>}</p>
  
  <p>But It is not working</p>