form icon indicating copy to clipboard operation
form copied to clipboard

Cannot read property 'filter' of undefined

Open marcio-alves-deel opened this issue 5 years ago • 2 comments

When using Antd form, I'm getting error with onChange value.

TypeError: Cannot read property 'filter' of undefined
    at Object.getRules (createBaseForm.js:304)
    at createBaseForm.js:444
    at Array.forEach (<anonymous>)
    at Object.validateFieldsInternal (createBaseForm.js:431)
    at Object.onCollectValidate (createBaseForm.js:189)
    at handleChange (PictureUpload.jsx:37)
    at Upload._this.onChange (Upload.js:202)
    at Upload._this.onStart (Upload.js:90)
    at AjaxUploader.js:184

The error started after trying to use the lib with react hooks.

marcio-alves-deel avatar Mar 15 '20 16:03 marcio-alves-deel

I'm facing the same issue, any possible solution to this?

Prajwal-S-Venkatesh avatar Apr 15 '21 06:04 Prajwal-S-Venkatesh

@Prajwal-S-Venkatesh, did you solve this problem?

patrickjsmirnov avatar Aug 02 '21 08:08 patrickjsmirnov