Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'filter' of undefined #374

Open
marcio-alves-deel opened this issue Mar 15, 2020 · 2 comments
Open

Cannot read property 'filter' of undefined #374

marcio-alves-deel opened this issue Mar 15, 2020 · 2 comments

Comments

@marcio-alves-deel
Copy link

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.

@prajwal-svm
Copy link

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

@patrickjsmirnov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants