UI: Fixed saving issue in dynamic form array item of type 'fieldset'
This commit is contained in:
		
							parent
							
								
									822b2155dd
								
							
						
					
					
						commit
						4a9f2d87f3
					
				@ -181,15 +181,15 @@ export const cleanupFormProperty = (property: FormProperty): FormProperty => {
 | 
			
		||||
  if (property.type !== FormPropertyType.textarea) {
 | 
			
		||||
    delete property.rows;
 | 
			
		||||
  }
 | 
			
		||||
  if (property.type !== FormPropertyType.fieldset) {
 | 
			
		||||
    delete property.properties;
 | 
			
		||||
  } else if (property.properties?.length) {
 | 
			
		||||
    property.properties = cleanupFormProperties(property.properties);
 | 
			
		||||
  }
 | 
			
		||||
  if (property.type !== FormPropertyType.array) {
 | 
			
		||||
    delete property.arrayItemName;
 | 
			
		||||
    delete property.arrayItemType;
 | 
			
		||||
  }
 | 
			
		||||
  if (property.type !== FormPropertyType.fieldset && property.arrayItemType !== FormPropertyType.fieldset) {
 | 
			
		||||
    delete property.properties;
 | 
			
		||||
  } else if (property.properties?.length) {
 | 
			
		||||
    property.properties = cleanupFormProperties(property.properties);
 | 
			
		||||
  }
 | 
			
		||||
  if (property.type !== FormPropertyType.select) {
 | 
			
		||||
    delete property.multiple;
 | 
			
		||||
    delete property.allowEmptyOption;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user