You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constinsertFieldValue=React.useCallback((field,index,value,options)=>{apiRef.current.setFieldValue(field,old=>{if(Array.isArray(old)){returnold.map((d,i)=>(i===index ? value : d))}else{throwError(`Cannot insert a field value into a non-array field. Check that this field's existing value is an array: ${field}.`)}},options)},[])
The text was updated successfully, but these errors were encountered:
the insertFieldValue is wrong ?
The text was updated successfully, but these errors were encountered: