Browse Source

fix(forms): Remove field initialData on field removal (#49232)

Evan Purkhiser 1 year ago
parent
commit
7afdfdd74f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      static/app/components/forms/model.tsx

+ 1 - 0
static/app/components/forms/model.tsx

@@ -260,6 +260,7 @@ class FormModel {
     this.fieldState.delete(id);
     this.fieldDescriptor.delete(id);
     this.errors.delete(id);
+    delete this.initialData[id];
   }
 
   /**