@@ -519,8 +519,8 @@ class ArrayField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends For
519519    const  _schemaItems : S  =  isObject ( schema . items )  ? ( schema . items  as  S )  : ( { }  as  S ) ; 
520520    const  itemsSchema : S  =  schemaUtils . retrieveSchema ( _schemaItems ) ; 
521521    const  formData  =  keyedToPlainFormData ( this . state . keyedFormData ) ; 
522-     const  renderOptionalField  =  shouldRenderOptionalField ( registry ,  schema ,  required ,  uiSchema ) ; 
523-     const  hasFormData  =  isFormDataAvailable ( this . props . formData ) ; 
522+     const  renderOptionalField  =  shouldRenderOptionalField < T [ ] ,   S ,   F > ( registry ,  schema ,  required ,  uiSchema ) ; 
523+     const  hasFormData  =  isFormDataAvailable < T [ ] > ( this . props . formData ) ; 
524524    const  canAdd  =  this . canAddItem ( formData )  &&  ( ! renderOptionalField  ||  hasFormData ) ; 
525525    const  actualFormData  =  hasFormData  ? keyedFormData  : [ ] ; 
526526    const  extraClass  =  renderOptionalField  ? ' rjsf-optional-array-field'  : '' ; 
@@ -752,8 +752,8 @@ class ArrayField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends For
752752    const  uiOptions  =  getUiOptions < T [ ] ,  S ,  F > ( uiSchema ) ; 
753753    const  {  schemaUtils,  fields,  formContext,  globalFormOptions }  =  registry ; 
754754    const  {  OptionalDataControlsField }  =  fields ; 
755-     const  renderOptionalField  =  shouldRenderOptionalField ( registry ,  schema ,  required ,  uiSchema ) ; 
756-     const  hasFormData  =  isFormDataAvailable ( formData ) ; 
755+     const  renderOptionalField  =  shouldRenderOptionalField < T [ ] ,   S ,   F > ( registry ,  schema ,  required ,  uiSchema ) ; 
756+     const  hasFormData  =  isFormDataAvailable < T [ ] > ( formData ) ; 
757757    const  _schemaItems : S [ ]  =  isObject ( schema . items )  ? ( schema . items  as  S [ ] )  : ( [ ]  as  S [ ] ) ; 
758758    const  itemSchemas  =  _schemaItems . map ( ( item : S ,  index : number )  => 
759759      schemaUtils . retrieveSchema ( item ,  items [ index ]  as  unknown  as  T [ ] ) , 
0 commit comments